---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# WeakSet.prototype.delete

The **`delete()`** method removes the specified element from a
`WeakSet` object.

## Syntax

```js
delete(value)
```

### Parameters

- `value`
  - : Required. The object remove from the `WeakSet` object.

### Return value

`true` if an element in the `WeakSet` object has been removed
successfully. `false` if the `value` is not found in
the `WeakSet` or if the `value` is not an object.
