4 * Delete archived (non-current) files from the database
9 * Based on deleteOldRevisions.php by Rob Church
12 $options = array( 'delete', 'help' );
13 require_once( 'commandLine.inc' );
14 require_once( 'deleteArchivedFiles.inc' );
16 echo( "Delete Archived Images\n\n" );
18 if( @$options['help'] ) {
21 DeleteArchivedFiles( @$options['delete'] );
24 function ShowUsage() {
25 echo( "Deletes all archived images.\n\n" );
26 echo( "These images will no longer be restorable.\n\n" );
27 echo( "Usage: php deleteArchivedRevisions.php [--delete|--help]\n\n" );
28 echo( "delete : Performs the deletion\n" );
29 echo( " help : Show this usage information\n" );