NAME

krang_delete - interface to deletion of Krang objects


SYNOPSIS

  krang_delete --media --story_id 32


DESCRIPTION

This script provides a command-line interface to Krang object deletion. It allows for deletion of an entire class of objects (i.e. all media), and alternately by object id.


OPTIONS

  --sites       - delete all sites
  --site_id     - delete site specified by this id
  --site_uuid   - delete site specified by this uuid
  --categories  - delete all categories (except site top level cats)
  --category_id - delete category specified by this uuid
  --category_uuid - delete category specified by this uuid
  --contribs    - delete all contributors
  --contrib_id  - delete contributor specified by this id
  --media       - delete all media
  --media_id    - delete media specified by this id
  --media_uuid  - delete media specified by this uuid
  --stories     - delete all stories
  --story_id    - delete story specified by this uuid
  --story_uuid  - delete story specified by this uuid
  --templates   - delete all templates
  --template_id - delete templates specified by this id
  --template_uuid - delete templates specified by this uuid
  --users       - delete all users (except user with login 'admin', if exists)
  --user_id     - delete user specified by this id
  --user_uuid    - delete user specified by this uuid
  --recursive   - if this is set, all dependant objects will be deleted.
                  Use this option with care!
  --verbose     - print a running dialogue of what happens, otherwise
                  actions are performed silently.