Manual talk:Pywikibot/delete.py

Latest comment: 2 months ago by FocalPoint in topic Script does not work
The following discussion has been transferred from Meta-Wiki.
Any user names refer to users of that site, who are not necessarily users of MediaWiki.org (even if they share the same username).

Error message edit

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)Reply

Policy edit

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)Reply

file parameter edit

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 edit

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)Reply

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:

# [[Delete this]]

# [[Delete that]]

# [[etc.]]

--Svemir Brkic 03:14, 4 September 2007 (UTC)Reply

Pages are not deleted but template delete is added edit

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.[1]. This does not help me. Can anyone help? --Aschroet (talk) 08:18, 8 February 2017 (UTC)Reply

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)Reply
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)Reply
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)Reply
@Aschroet: 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)Reply

Script does not work edit

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)Reply

Sadly, when I tried to run it on the wiki I'm admin on, I got Template:Delete installed instead, nominating the page for speedy deletion. Well, okay, so now I went to the -cat:"Candidates for deletion" option. Two CfD tags. <deep sigh> WTF? Myk Streja (talk) 23:00, 20 April 2022 (UTC)Reply
Trying to delete 500 or so pages which need deletion in el-wikt. Same. @Myk Streja, @Vicarage, did you find anything? Anyone else? FocalPoint (talk) 16:31, 19 February 2024 (UTC)Reply
Return to "Pywikibot/delete.py" page.