Tech:Deleting and moving batches of pages on a wiki
(Redirected from Tech:DELETEBATCH)
To delete or move large batches of pages on a wiki, execute the following commands for the deleteBatch.php
and moveBatch.php
MediaWiki maintenance scripts in the following sequence:
- Login to
mwtask181
(active maintenance server). - Upload a text file, named as subdomain.txt, ideally, to your shell folder, which contains the list of pages for deletion or moving (include the namespace, where applicable!), replacing the italicized portions as applicable.
- Run
sudo -u www-data php /srv/mediawiki/w/maintenance/deleteBatch.php --wiki=wikidbname -u "Miraheze maintenance script" -r "[[phab:T###|Requested]]" /home/yourshellusername/wikisubdomain.txt
, replacing the bolded and italicized portions as applicable. Note:deleteBatch.php
is interchangeable withmoveBatch.php
as applicable. - sudo
sudo -u www-data php /srv/mediawiki/w/maintenance/deleteBatch.php --wiki=wikidbname -u "Miraheze maintenance script" -r "[[phab:T###|Requested]]" /home/yourshellusername/wikisubdomain.txt
, replacing the bolded italicized portions as applicable. Note:deleteBatch.php
is interchangeable withmoveBatch.php
as applicable. - Logout (if you are done with your business on
mwtask181
).