MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=revisiondelete
(main | revisiondelete)
- Voor deze module zijn leesrechten nodig.
- Voor deze module zijn schrijfrechten nodig.
- This module only accepts POST requests.
- Source: MediaWiki
- License: GPL-2.0+
Delete and undelete revisions.
Parameters:
- type
Type of revision deletion being performed.
- This parameter is required.
- One of the following values: revision, archive, oldimage, filearchive, logging
- 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 |. Maximum number of values is 50 (500 for bots).
- hide
What to hide for each revision.
- Values (separate with |): content, comment, user
- show
What to unhide for each revision.
- Values (separate with |): content, comment, user
- suppress
Whether to suppress data from administrators as well as others.
- One of the following values: yes, no, nochange
- Standaard: nochange
- reason
Reason for the deletion or undeletion.
- token
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.
Examples:
- Hide content for revision 12345 on the page Main Page.
- api.php?action=revisiondelete&target=Main%20Page&type=revision&ids=12345&hide=content&token=123ABC
- Hide all data on log entry 67890 with the reason BLP violation.
- api.php?action=revisiondelete&type=logging&ids=67890&hide=content|comment|user&reason=BLP%20violation&token=123ABC