# DELETE

Deletes rows that satisfy the `WHERE` clause from the specified table. If the WHERE clause is absent, all rows in the table are deleted, resulting in a valid but empty table.

```
DELETE FROM table_name [ * ] [ [ AS ] alias ]
[ WHERE condition ]
```

## Cross-Database Queries

In Release 6.4 and higher, you can run DELETE queries across tables in different databases on the same HEAVY.AI cluster without having to first connect to those databases.

To execute queries against another database, you must have ACCESS privilege on that database, as well as DELETE privilege.

#### Example

Delete rows from a table in the `my_other_db` database:

```sql
DELETE FROM my_other_db.customers WHERE id > 100;
```


---

# 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://docs.heavy.ai/v8.3.0/sql/data-manipulation-dml/sql-capabilities/delete.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.
