Tech:Deleting and moving batches of pages on a wiki

From Miraheze Meta, Miraheze's central coordination wiki
(Redirected from Tech:DELETEBATCH)
Shortcuts:
Tech:DELETEBATCH,
Tech:MOVEBATCH

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:

  1. Login to mwtask181 (active maintenance server).
  2. 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.
  3. 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 with moveBatch.php as applicable.
  4. 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 with moveBatch.php as applicable.
  5. Logout (if you are done with your business on mwtask181).