Clean_thumbnailsDelete thumbnails to allow regeneration


Delete thumbnails to allow regeneration


the micro-blogging software


Copyright © 2016-2017, Maiyannah Bishop

Derived from code copyright various sources

  • GNU Social © 2013-2016, Free Software Foundation, Inc
  • StatusNet © 2008-2012, StatusNet, Inc


This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program.  If not, see


Delete thumbnails to allow regeneration

clean_thumbnails.php [options] Deletes all local thumbnails so they can be regenerated.  Also deletes if the original File object does not exist, even for remote entries.

-y --yes do not wait for confirmation

Will print ‘.’ for deleted local files and ‘x’ where File entry was missing.  If the script seems to stop, it is processing correct File_thumbnail entries.

PHP version

Tested with PHP 7

File Authors