Topic on Project:Support desk

How can i delete the files for ever, which are located in image/deleted

4
Summary by MarkAHershberger

The maintenance script deleteArchivedFiles.php does what you want.

95.172.68.155 (talkcontribs)

Software Version MediaWiki 1.22.3

PHP 5.4.20 (apache2handler)

MariaDB 5.5.33-MariaDB

My wiki isn't available in the Internet, only intranet. Sorry.

My question is:

We deleted a lot of old files from our wiki, because it wasn't connected and needed any more. Now we would like to do some maintenance and remove the deleted files from the "images/deleted" Folder.

Can i do just rm -r * in "images/deleted" Folder or is there some maintenance tool available for that? And what does the wiki say, when the file is deleted on the filesystem?

Thank you in advance for help.

Daniel

from Essen, Germany.

Malyacko (talkcontribs)
MarkAHershberger (talkcontribs)

You can test this out yourself by just moving the files out of the way initially. For example, log in with a sysop account and visit a deleted image's file page. Then, in a shell:

$ cd $IP/images
$ mv deleted not-yet-deleted

Now reload the page in your browser -- add ?action=purge to be sure you're seeing something up-to-date -- and see how the page's appearance has changed.

You should also log out of the wiki and see if there is a noticeable problem for less privileged users of the site.

If everything is good, then you can really delete the images. If there is a problem, you can move them back to the deleted folder.

88.130.117.48 (talkcontribs)