[ckan-dev] API: delete resource via its name value
andy
aborruso at gmail.com
Sun Nov 3 11:45:42 UTC 2019
Hi,
if I want to delete a dataset, I can use this kind of command:
```
http --json POST https://mysite.com/api/3/action/dataset_purge \
Authorization:xxxxxx \
id=test
```
"test" is a dataset name and not the id of the dataset.
If I run the same kind of command for a resource
```
http --json POST https://mysite.com /api/3/action/resource_delete \
Authorization:zzzzzzz \
id="resourcename"
```
the resource is not deleted. It seems I must use only the resource id and
not its name. Is it right?
I'm using CKAN 2.8.2.
Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20191103/7eed727f/attachment.html>
More information about the ckan-dev
mailing list