Delagent

./delagent -h
./delagent: invalid option -- 'h'
Usage: ./delagent [options]
  List or delete uploads.
  Options
  -i   :: Initialize the DB, then exit.
  -u   :: List uploads IDs.
  -U # :: Delete upload ID.
  -L # :: Delete ALL licenses associated with upload ID.
  -f   :: List folder IDs.
  -F # :: Delete folder ID and all uploads under this folder.
          Folder '1' is the default folder.  '-F 1' will delete
          every upload and folder in the navigation tree.
  -s   :: Run from the scheduler.
  -T   :: TEST -- do not update the DB or delete any files (just pretend)
  -v   :: Verbose (-vv for more verbose)
  -c # :: Specify the directory for the system configuration
Purpose Test Delagent cli parameters
Dependencies Need uploads and folders to delete
Step Action Expected Results
1. ./delagent prints usage
2. ./delagent -i exit code 0
3. ./delagent -u list of all upload ids
4. ./delagent -f list of all folders and contents 1257
5. ./delagent -T -U 4 Shows a dry run of what would be removed
6. ./delagent -L 3 Remove all licenses for upload 3 1257
7. ./delagent -T -F 1 Shows a dry run of delete folder