# Database Delete Row

> Delete a row from a database by its ID.

- ID: `db_delete_row`
- Type: Block
- Category: [Databases](https://inventor.bot/docs/reference/blocks/databases.md)

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `database_id` | yes | Select the database containing the row. |  |
| `row_id` | yes | The unique ID of the row to delete. | e.g. `"abc123xyz"` |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `row_id` | The unique ID of the deleted row. | e.g. `"abc123xyz"` |
| `deleted` | Whether the row was successfully deleted (true/false). | e.g. `"true"` |
| `row_json` | The deleted row as a JSON object, including system fields (__id, __created_at, __updated_at, __created_at_unix, __updated_at_unix). | e.g. `"{\"__id\":\"abc123\",\"name\":\"example\"}"` |

**Example**

```go
row := db_delete_row(Args{database_id: "...", row_id: "abc123xyz"})
send_text_message(Args{channel_id: trigger.channel_id, message_content: "Row ID: " + row.row_id})
```