ByteChef LogoByteChef
OpenapiRows

Clear a table

Delete every row. Irreversible.

POST
/workspaces/{workspaceId}/data-tables/{name}/rows/clear

Path Parameters

workspaceId*integer

The id of a workspace.

Formatint64
name*string

The table name.

Header Parameters

X-Environment?string

The environment whose physical table is addressed. PRODUCTION when omitted.

Value in

  • "DEVELOPMENT"
  • "STAGING"
  • "PRODUCTION"

Response Body

application/json

application/problem+json

application/problem+json

curl -X POST "https://example.com/workspaces/0/data-tables/string/rows/clear"
{  "deletedCount": 0}

How is this guide?