---
title: CustomStateSet.delete()
slug: Web/API/CustomStateSet/delete
tags:
  - API
  - Method
  - Reference
  - delete
  - CustomStateSet
browser-compat: api.CustomStateSet.delete
---
{{DefaultAPISidebar("DOM")}}

The **`delete()`** method of the {{domxref("CustomStateSet")}} interface deletes a single value from the `CustomStateSet`.

## Syntax

```js
CustomStateSet.delete(value)
```

### Parameters

: `value`
  : - The value to remove from the `CustomStateSet`.

### Return Value

Returns `true` if `value` was in the `CustomStateSet`; otherwise `false`.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}

