nhsengland / ckanext-nhsengland

NHS England CKAN skin
GNU Affero General Public License v3.0
2 stars 5 forks source link

Adds a zap command to remove organizations and datasets #4

Closed rossjones closed 9 years ago

rossjones commented 9 years ago

paster zap <group-name>

After re-running python setup.py develop

davidmiller commented 9 years ago

This is much nicer than what I was doing :)

sudo -u postgres psql -c "SELECT id FROM package where state = 'deleted'" -d ckan_default -t | xargs -i paster dataset purge {} -c /etc/ckan/default/production.ini