#!/usr/bin/env php . */ define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); $shortoptions = 'y'; $longoptions = array('yes'); $helptext = <<query($sql) !== false) { print " Deleting {$file->N} entries: "; while ($file->fetch()) { try { $file->getPath(); $file->delete(); print 'x'; } catch (Exception $e) { // either FileNotFound exception or ClientException $file->delete(); print '.'; } } } print "\nDONE.\n";