Is there a smart/quick way to permanently delete (“purge”) "one shot" all dataset belonging to an organization, either via GUI or via sysadmin command?
I've an organization with 100k datasets ...
In the web interface you can 'delete' an organization's datasets in large batches and then 'empty the trash' to purge them. However with so many datasets this approach may suffer from request timeouts - let us know how you get on.
As an admin for the organization:
Then as a sysadmin:
Alternatively you could write a script to call CKAN APIs:
fq=organization:<name> (rather than using organization_show, which is limited to 1000 datasets)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With