curl --request PUT \
--url https://api.trieve.ai/api/dataset/clear/{dataset_id} \
--header 'Authorization: <api-key>' \
--header 'TR-Dataset: <tr-dataset>'{
"message": "Bad Request"
}Removes all chunks, files, and groups from the dataset while retaining the analytics and dataset itself. The auth’ed user must be an owner of the organization to clear a dataset.
curl --request PUT \
--url https://api.trieve.ai/api/dataset/clear/{dataset_id} \
--header 'Authorization: <api-key>' \
--header 'TR-Dataset: <tr-dataset>'{
"message": "Bad Request"
}The dataset id or tracking_id to use for the request. We assume you intend to use an id if the value is a valid uuid.
The id of the dataset you want to clear.
Dataset cleared successfully
Was this page helpful?