POST
/
v1
/
tables
/
{table}
/
rows
/
delete
curl --request POST \
  --url https://api.botpress.cloud/v1/tables/{table}/rows/delete \
  --header 'Content-Type: application/json' \
  --data '{
  "ids": [
    123
  ],
  "filter": {},
  "deleteAllRows": true
}'
{
  "deletedRows": 123
}

Path Parameters

table
string
required

The table's name or unique identifier for targeting specific table operations.

Body

application/json
Identifiers of the rows to be deleted.
ids
number[]
filter
object

Filter to apply when deleting rows. Example: { "name": { "$eq": "John" } }

deleteAllRows
boolean

Flag to delete all rows. Use with caution as this action is irreversible.

Response

200
application/json
Confirms the number of rows successfully deleted.
deletedRows
number
required