Topic on Project:Support desk

I want to delete unused images and pages in Mediawiki

8
Dsouzajoel23 (talkcontribs)

Mediawiki Version: 1.34

PHP Version: 7.3

Database Type: 10.3.24-MariaDB - MariaDB Server

Web Address: http://www.wikiweb.nl/html/index.php/Main_Page

Is there a way to do a "mass delete" of unused pages and pictures. The deleteArchivedFiles.php is not working as expected.

Malyacko (talkcontribs)

@Dsouzajoel23 If something does not work as expected, then please explain why. Thanks.

115.96.42.2 (talkcontribs)

I have close to 300 unused images. I want to delete them but the deleteArchivedFiles.php doesnt delete them. Also i want to delete unused pages, it doesnt delete that either.

MarkAHershberger (talkcontribs)

You probably want an extension to help you delete big batches of pages at a time. DeleteBatch looks like it does what you want.

115.96.42.2 (talkcontribs)

But how do i get all the unused pages and files in order to delete them?

Bawolff (talkcontribs)

note: deleteArchovedFiles only permenently deletes files that have already been deleted in the web interface. It does not delete files just because they are unused.

Dsouzajoel23 (talkcontribs)

So is there a way to firstly have a script to list down all unused images and articles and then save this to a file which can then be fed to DeleteBatch

Bawolff (talkcontribs)

see the page Special:unusedimages on your wiki (or equivalent from list=querypage in the api)

Reply to "I want to delete unused images and pages in Mediawiki"