ckanaction

package_delete

DELETE
package_delete

Delete a dataset (package).

This makes the dataset disappear from all web & API views, apart from the trash.

You must be authorized to delete 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 delete

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