Skip to main content
DELETE
/
api
/
database
/
records
/
{tableName}
Delete Records
curl --request DELETE \
  --url https://api.example.com/api/database/records/{tableName} \
  --header 'Authorization: Bearer <token>'
[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"title": "Deleted Post",
"createdAt": "2025-01-01T00:00:00Z",
"updatedAt": "2025-01-21T11:00:00Z"
}
]

Authorizations

Authorization
string
header
required

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

Headers

Prefer
enum<string>

Include to return deleted records in response

Available options:
return=representation

Path Parameters

tableName
string
required

Name of the table

Query Parameters

id
string

Filter records by ID (e.g., "?id=eq.123e4567-e89b-12d3-a456-426614174000")

Response

Records deleted (with Prefer header)