MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=revisiondelete

(main | revisiondelete)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: MediaWiki
  • License: GPL-2.0-or-later

Delete and undelete revisions.

Specific parameters:
Other general parameters are available.
type

Type of revision deletion being performed.

This parameter is required.
One of the following values: archive, filearchive, logging, oldimage, revision
target

Page title for the revision deletion, if required for the type.

ids

Identifiers for the revisions to be deleted.

This parameter is required.
Separate values with | or alternative.
Maximum number of values is 50 (500 for clients that are allowed higher limits).
hide

What to hide for each revision.

Values (separate with | or alternative): comment, content, user
show

What to unhide for each revision.

Values (separate with | or alternative): comment, content, user
suppress

Whether to suppress data from administrators as well as others.

One of the following values: no, nochange, yes
Default: nochange
reason

Reason for the deletion or undeletion.

tags

Tags to apply to the entry in the deletion log.

Values (separate with | or alternative): AFCH, AWB, Addition of protection template to non-protected page, AntiVandal script, CVPI, Deputy, HotCat, JWB, Newcomer task, New user adding protection template, ProveIt edit, RedWarn, Ultraviolet, WPCleaner, WikiLoop Battlefield, WikiShield script, bot trial, changing time or duration, convenient-discussions, editProtectedHelper, excessive whitespace, fixed lint errors, huggle, invalid-timedtext-edit, large non-free file, massmove, moveToDraft, new user moving page out of userspace, ooze, pageswap, possible birth or death date change, possible formatting issues, pronoun-change, rapid date format changes, self-published-blog, self-published source, shortdesc helper, talk banner shell conversion, twinkle
token

A "csrf" token retrieved from action=query&meta=tokens

This parameter is required.