POST
/
v1
/
tables
/
{table}
/
rows
/
delete
cURL
curl --request POST \
  --url https://api.botpress.cloud/v1/tables/{table}/rows/delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-bot-id: <api-key>' \
  --data '{
  "ids": [
    123
  ],
  "filter": {},
  "deleteAllRows": true
}'
{
  "deletedRows": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

x-bot-id
string
header
required

Your bot ID.

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[]
Maximum length: 1000
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