Skip to content

mw wiki page delete

Releasev0.35.0 · cfeceb67

mw wiki page delete [flags]

Delete the page selected by –title, the titles supplied as arguments, or newline-separated titles from standard input. Use –dry-run to inspect the selected titles without deleting pages.

--dry-run
Show the selected titles without deleting pages
--reason <string>
Reason for the deletion Default: a Wikimedia CLI deletion.
--title <string>
Title of the page to delete (alternatively, supply arguments or pipe titles to stdin)
--anon
Use anonymous access instead of saved credentials
--help
Help for this command
--no-interaction
Do not ask any interactive questions
--password <string>
Wiki login password (or bot password)
--password-file <string>
Read the login password from a file
--profile <string>
Saved profile name or REALM/NAME
--realm <string>
Shared-login realm (wikimedia and wikibase-world are built in)
--username <string>
Wiki login username (use Name@bot for a bot password)
-v, --verbose <count>
Increase output verbosity. Example: --verbose=2 or -vv
--wiki <string>
Wiki URL or API endpoint
Terminal window
# Delete a test page using a saved profile
mw wiki page delete --profile wikimedia/addshore --wiki https://test.wikipedia.org/w/api.php --title "User:Addshore/CLI test"
Report an issue with this page

Report a documentation issue

The report includes this page’s link, section and documentation version.

Review and submit on Phabricator, or run the command using your saved CLI profile. The command asks before creating the task.