ckanr (version 0.3.0)

package_delete: 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: http://data.techno-science.ca. See also ckanr_setup and get_default_url.

key

A privileged CKAN API key, Default: your key set with ckanr_setup

...

Curl args passed on to POST (optional)

Examples

Run this code
# 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)
# }

Run the code above in your browser using DataCamp Workspace