Delete data from database (REST API)
Changed onDelete rows from your database using REST API.
Safety: Requires at least one filter to prevent accidental mass deletions
Security: Row-Level Security ensures you can only delete data you have access to
Note: If RLS blocks the delete, an empty result is returned (not an error)
Branch-targeted. Runs against the named branch instead of the parent database, using the branch's own credentials. The branch must be active and unexpired. Nothing about this request can reach the parent's data.
Request
- Base URLhttps://api.volcano.dev
- AuthHTTP bearer
Path parameters
Database name (unique within project, lowercase letters, numbers, and underscores only)
Branch name (unique within the parent database, lowercase letters, numbers, and underscores only)
Request body
Table name
WHERE conditions (required for safety)
Example request
{
"table": "posts",
"filters": [
{
"column": "id",
"operator": "eq",
"value": "post-uuid"
}
]
}Response
Delete successful
Rows returned by a data API request. RLS-filtered unless the request was made with a service key.
Result rows
Number of rows returned
Changes
- breaking
added the new path request parameter
branchName - breaking
added the new path request parameter
databaseName - breaking
added the new required request property
filters
23 more changes in this revision
- breaking