Jump to content

Pywikibot/delete.py: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
m Pywikipedia
m Reverted changes by 5.75.54.24 (talk) to last version by Tegel
 
(21 intermediate revisions by 16 users not shown)
Line 1:
{{MovedToMediaWiki|Manual:{{PAGENAME}}}}
This script can be used to delete pages en masse.
 
You will need an admin account on the relevant wiki.
 
Also add:
 
sysopnames['wikipedia']['en'] = 'adminname'
 
To <code>user-config.py</code>
 
Where ['wikipedia'] is the name of the mediawiki
 
'adminname' is the username
 
Examples:
 
Delete everything in the category "To delete" without prompting.
 
python delete.py -category:"To delete" -always
 
Delete everything in the pages lined to the page, without prompting.
 
python delete.py "deletepage" -always
 
 
-category: Delete all pages in the given category.<br>
-links: Delete all pages linked from a given page.<br>
-always Don't prompt to delete pages, just do it.<br>
-summary: Supply a custom edit summary.<br>
 
 
[[Category:Pywikipedia]]

Latest revision as of 15:29, 2 December 2021