Wipe Entity Table
Delete every record in one database table at once, for example to reset a table between test imports. First call it without expected_count: nothing is deleted and matched_count says how many records the table holds. Show that count to the user and get confirmation, then call it again with expected_count set to that count. If the table changed in between, the call fails with FAILED_PRECONDITION and nothing is deleted. Otherwise every record is deleted in one transaction and wiped_count is returned. The audit log gets one table-wiped event, not one event per record. Refused with FAILED_PRECONDITION for tables with workflow rules (use Delete Entities By Filter, or Delete Entities for before-save workflows), tables over 200,000 records or with validation checks on deletes (use Delete Entities By Filter), tables with child tables (empty the child tables first), and callers who may delete only some of the table’s records.
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.
- 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.

