Manual:Pywikibot/delete.py

This script can be used to delete and undelete pages en masse. You will need an admin account on the relevant wiki. Also add:

to, where   is the name of the the family in which you are working on, and   is the username.

Syntax:

Examples

 * Delete everything in the category "To delete" without prompting.


 * Delete everything in the pages linked to the page, without prompting.


 * Delete everything in the speedy deletion category on the English Wikibooks.


 * Delete pages inside a text file:

The format of the text file should be as the following:


 * 1) Main Page
 * 2) Talk:Main Page


 * Restore pages: