DELETE statement removes rows from a dataset. A WHERE clause restricts which rows are removed.
DELETE runs against datasets you own. To drop an entire dataset rather than delete rows, delete the dataset through the platform UI or API.
Syntax
- The
WHEREclause is optional. If omitted, every row in the dataset is removed. The dataset itself remains but is empty. - The
WHEREcondition can reference any column on the target dataset and use any NQL operators or functions.
Examples
Delete a single row by key:Execution context
DELETE statements can run in two places:| Execution surface | When to use |
|---|---|
| NQL query endpoint | Ad-hoc deletes from an API client or Data Studio |
ExecuteDml workflow task | Scheduled or event-driven deletes inside a workflow |
Related content
INSERT
Add rows to a dataset
UPDATE
Modify existing rows in a dataset
SELECT
Preview rows before deleting
ExecuteDml workflow task
Run DML statements from a workflow

