Delete all records from the table and optionally reset the primary key
Authentication: required
Required API Scope: Workspace Content: Delete
curl --request DELETE \
--url https://your-xano-instance.xano.io/api:meta/workspace/{workspace_id}/table/{table_id}/truncate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"reset": true
}'{}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Success!
Was this page helpful?
curl --request DELETE \
--url https://your-xano-instance.xano.io/api:meta/workspace/{workspace_id}/table/{table_id}/truncate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"reset": true
}'{}