ckanaction

dataset_purge

DELETE
dataset_purge

Purge a dataset.

Purging a dataset cannot be undone!

Purging a dataset completely removes the dataset from the CKAN database, whereas deleting a dataset simply marks the dataset as deleted (it will no longer show up in the front-end, but is still in the db).

You must be authorized to purge the dataset.

Authorization

apiTokenHeader
headerAuthorization<token>

CKAN API token

Request Body

application/json
  1. body
id?string

the id or name of the dataset to be purged

Example Request
curl -X DELETE 'http://localhost:5000/api/3/action/dataset_purge' \  -H 'Content-Type: application/json' \  -d '{}'