package_delete {ckanr} | R Documentation |
Delete a package
Description
Delete a package
Usage
package_delete(id, url = get_default_url(), key = get_default_key(), ...)
Arguments
id |
(character) The id of the package. Required. |
url |
Base url to use. Default: https://data.ontario.ca
See also |
key |
A privileged CKAN API key, Default: your key set with
|
... |
Curl args passed on to crul::verb-POST (optional) |
Examples
## Not run:
# Setup
ckanr_setup(url = "https://demo.ckan.org", key = getOption("ckan_demo_key"))
# create a package
(res <- package_create("lions-bears-tigers"))
# show the package
package_show(res)
# delete the package
package_delete(res)
## End(Not run)
[Package ckanr version 0.7.0 Index]