# Delete Records

This action will delete one or more records from a given collection by using a supplied unique id or a filter.

![](https://2678899722-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPD9c4fJbXSAZcPHt9%2F-M_bUF5QDszKGz8mflmO%2F-M_bULesr5-qH6N-cLT8%2Fimage.png?alt=media\&token=6115fbf3-c908-4522-ac2a-8856fb0bc0fc)

### Settings

The action uses the following settings:

| Setting          | Description                                                                                                                                                                           | [Parsed](https://docs10.xenioo.com/actions-and-operations/dynamic-parsing) |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| Collection       | The collection to be used for the action                                                                                                                                              | :no\_entry:                                                                |
| Record Unique Id | The unique id of the record to be deleted. If left empty,[ Filter Operations](https://docs10.xenioo.com/actions-and-operations/database/set-field-filter-value) will be used instead. | :white\_check\_mark:                                                       |

### Remarks

If no unique id is specified, this action will delete all records that satisfy the given filters. Records are physically deleted from the collection with no way to retrieve them.

If no unique id and not filters are specified, the action won't execute.

### Trigger

If no unique id is specified, this action will trigger [all filters](https://docs10.xenioo.com/actions-and-operations/database/set-field-filter-value) added as operations.

### Variables

This action produces the following variables after being triggered:

| Variable                       | Description                                                                         |
| ------------------------------ | ----------------------------------------------------------------------------------- |
| last\_database\_command\_count | Contains the number of records that have been deleted from the selected collection. |

### Availability

Channel specific availability follows the table below:

| Channel          | Availability     |
| ---------------- | ---------------- |
| Facebook         | Fully Available. |
| WhatsApp         | Fully Available. |
| SMS              | Fully Available. |
| Telegram         | Fully Available. |
| Web              | Fully Available. |
| Alexa            | Fully Available. |
| Google Assistant | Fully Available. |
| Slack            | Fully Available. |
| API              | Fully Available. |

This action requires an active [Database ](https://docs10.xenioo.com/basic-concepts/your-account/additional-packages)package.
