> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sourcery.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Only-Delete-Object-Properties

#### Sourcery rule id: `only-delete-object-properties`

#### Description

Delete should only be used for object properties.


#### Match

```javascript
var q = 1;
delete q;
```



#### Explanation

The `delete` operator is intended for use in deleting the properties of objects, and does not
have meaningful behaviour otherwise.

See [the MDN docs for delete.](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/delete)
