Manual talk:Pywikibot/delete.py

Error message
I get this message:
 * Getting a page to check if we're logged in on odessa:en


 * Retrieving MediaWiki messages for odessa:en


 * Parsing MediaWiki messages


 * ERROR: MediaWiki_Msg caused error Error URL: /wiki/index.php?title=Special:Allmessages&ot=html. Dump MediaWiki_Msg_odessa_en__Sun_Jan_07_22-05-27_2007.dump created.

Any suggestions? Odessaukrain 02:37, 8 January 2007 (UTC)

Policy
I wonder what policies different Wikimedia projects (mostly, enwiki) have for using this, and other things that require sysopnames to be set. Enwiki has no bots with admin flag, but are people using this with their regular admin account? Any links? /skagedal... 20:44, 4 February 2007 (UTC)

file parameter
i've used the bot with the -file parameter but nothing happens on my wiki.

the pages (which are all redirects) are still there

what's the syntax of the textfile, i used one article name (without " ' or something like that) per line

File Format
I am having the same file problem, I've tried with and without delimiters and the script still does nothing, no error message, just ends. 82.38.112.222 11:11, 18 August 2007 (UTC)


 * The file should be a numbered wiki list of wiki links. Each line should start with # symbol, followed by a wiki link to the page you want to delete:


 * 1) Delete this


 * 1) Delete that


 * 1) etc.
 * --Svemir Brkic 03:14, 4 September 2007 (UTC)

Pages are not deleted but template delete is added
Hello everybody, i used tried to use this script for several pages with an admin user account on dewikisource. But instead of really deleting the pages just template delete has been added.. This does not help me. Can anyone help? --Aschroet (talk) 08:18, 8 February 2017 (UTC)
 * Billinghurst, following your suggestion at https://phabricator.wikimedia.org/T157535. How can i do a mass deletion? --Aschroet (talk) 11:17, 10 February 2017 (UTC)
 * Admin function s:en:MediaWiki:Gadget-massdelete.js, you should be able add it as a local gadget, or just for your use. — billinghurst  sDrewth  11:40, 10 February 2017 (UTC)

mw.loader.load('//en.wikisource.org/w/index.php?title=MediaWiki:Gadget-massdelete.js&action=raw&ctype=text/javascript')
 * Billinghurst, i added the link to my common.js. Where can i find the link to start a mass deletion? --Aschroet (talk) 10:22, 11 February 2017 (UTC)
 * at Special:MassDelete. You can reference s:en:Special:Preferences (then the gadget page) for how we implemented it. — billinghurst  sDrewth  11:06, 11 February 2017 (UTC)

Script does not work
Just tried to use this script with an admin account with every possible right on my private wiki, created a bot password with every possible right, and the script simply says "can't delete", which is, of course, as far as user feedback goes, thouroughly sub-optimal. So I just assume that this script does not work at all. Other scripts, for example replace.py, work fine.

I had the same unhelpful message. Updating to the latest core_stable worked, but I also had to update my user-config.py from 2 years ago to remove options, and do /usr/bin/python3 -m pip install "requests>=2.20.1" as my Mint 19 is confused about Python 2 which is default and python3 which pywikibot now requires. Vicarage (talk) 13:16, 19 August 2020 (UTC)