Skip to main content
Deletes every row that matches the filters and returns how many were deleted. At least one filter is required.
Deleted rows can’t be recovered. Run list_rows with the same filters first to check what matches.

Parameters

string
required
Project id from list_projects. You need write access.
string
required
Table name.
object[]
required
At least one condition. Rows must match all of them. See Filters.

Result

integer
The number of rows deleted from this table. Rows removed from other tables by cascade foreign keys aren’t counted.

Example

Arguments
Result

Foreign keys

When other tables reference the rows you delete, each foreign key’s onDelete rule applies:

Errors

Notes

Deleting rows works even when the project has reached its storage limit, but it doesn’t reliably lower the measured size. See How storage is measured.