./delagent: invalid option -- 'h'
Usage: ./delagent [options]
List or delete uploads.
-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
|| Test Delagent cli parameters
|| Need uploads and folders to delete
|| prints usage
|| ./delagent -i
|| exit code 0
|| ./delagent -u
|| list of all upload ids
|| ./delagent -f
|| list of all folders and contents
|| ./delagent -T -U 4
|| Shows a dry run of what would be removed
|| ./delagent -L 3
|| Remove all licenses for upload 3
|| ./delagent -T -F 1
|| Shows a dry run of delete folder