POST

Truncate Data Items


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Removes all items from a collection.

Endpoint
POST
{DEPLOYMENT-URI}/v3/items/truncate
Body Params
collectionIdstringRequired

ID of the collection from which to remove all items.

Response Object
Returns an empty object.
Truncate a given collection
Request
cURL
curl POST https://external-db.example.com/v3/items/truncate \ -H 'Content-Type: application/json;charset=UTF-8' \ -H 'Authorization: <AUTH>' \ --d '{ "collectionId": "cities" }'
Response
JSON
{}
Did this help?