# Delete statements

[Home](/rezoom-sql/master.md) > [Language](/rezoom-sql/language.md) > Delete statements

[← Update statements](/rezoom-sql/language/updatestmt.md) | [Common table expressions →](/rezoom-sql/language/commontableexpression.md)

## Delete statements

An **delete statement** permanently removes rows from a table.

Its syntax typically looks like so. Note that rarely-used clauses have been excluded from this diagram -- see the bottom of this section for a full diagram.

#### *delete-stmt*

![](/files/bhgcf173SWGOU2OoAO7Y)

All of the complexity of a delete statement goes in its `where` clause, which determines which rows to delete from the table. Rows for which the `where` expression evaluates to `true` will be deleted.

If no `where` clause is supplied, all rows in the table will be deleted, which is usually **not** what you want.

### Limited deletes

Occasionally it is useful to delete only a limited number of rows.

Often you can do this with a `where Id in(select Id from ... limit x)`. In fact, this is the most flexible approach.

However, it is also possible to put a `limit` clause on the `delete` statement itself, which may perform better on some database backends.

This is the full syntax for the delete statement.

![](/files/XjlVxtfA0Bm2vQe14ZOZ)

***

[← Update statements](/rezoom-sql/language/updatestmt.md) | [Common table expressions →](/rezoom-sql/language/commontableexpression.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://humbobst.gitbook.io/rezoom-sql/language/deletestmt.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
