Skip to main content
POST
Wipe Entity Table

Authentication and permissions

Token requirements: User-based token (OAuth) or Organization-scoped API key or Workspace-scoped API key. Send a bearer access token for one of these identities. The permissions and resource restrictions below also apply.
Permissions joined by + are all required; or separates alternatives. Full-access keys still cannot call endpoints marked unsupported. Workspace keys must allow every workspace checked by the request. OAuth access depends on the user’s roles and resource access.
  • Wipe a table in a workspace’s database: Owner-only: the permission is checked on the table’s owning workspace. Worker tokens are refused. Refused when the caller may delete only some of the table’s records.

Authorizations

Authorization
string
header
required

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

Body

application/json
teamId
string
required

The ID of the workspace that owns the table.

entityTypeId
string
required
expectedCount

Omit to only count the table's records. Set it to the matched_count of a previous call to wipe the table; if the count has changed since, the call fails with FAILED_PRECONDITION and nothing is deleted.

Response

200 - application/json

Success

matchedCount
wipedCount

How many records the wipe deleted; 0 when expected_count was omitted.