Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant purge a dataset #59

Closed
bunnis opened this issue Oct 13, 2015 · 4 comments
Closed

Cant purge a dataset #59

bunnis opened this issue Oct 13, 2015 · 4 comments

Comments

@bunnis
Copy link

bunnis commented Oct 13, 2015

I cant seem to use dataset_purge (as stated in the API) but i can delete. Am I missing something_

ckan.action.dataset_purge(id='s1a_iw_grdh_1sdv_20141205t060219_20141205t060244_003580_00439e_129b')
ckanapi.errors.CKANAPIError: ['IP:5000/api/action/dataset_purge', 400, u'"Bad request - Action name not known: dataset_purge"']

ckan.action.package_delete(id='s1a_iw_grdh_1sdv_20141205t060219_20141205t060244_003580_00439e_129b')
No Erros

@wardi
Copy link
Contributor

wardi commented Oct 13, 2015

@bunnis are you reading the docs for the correct version of ckan? The dataset_purge API was added quite recently

@bunnis
Copy link
Author

bunnis commented Oct 13, 2015

@wardi Yes. Im using ckan 2.4.1 and using this link http://docs.ckan.org/en/latest/api/

@wardi
Copy link
Contributor

wardi commented Oct 13, 2015

package_purge exists only in the latest development version, not 2.4.x

@wardi wardi closed this as completed Oct 13, 2015
@ted-strauss-K1
Copy link

I was able to purge a data set with this command:

ckanapi action dataset_purge id=package-id-### -c /etc/ckan/default/development.ini

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants