Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- * action=revisiondelete *
- Delete a revision/log entry/file revision
- https://www.mediawiki.org/wiki/API:RevisionDelete
- This module requires read rights
- This module requires write rights
- This module only accepts POST requests
- Parameters:
- ids - The revision/log/oldimage IDs you want to delete
- This parameter is required
- Separate values with '|'
- Maximum number of values 50 (500 for bots)
- token - Your edit token
- This parameter is required
- reason - The reason given for deleting these entries
- type - The type of entries you're deleting
- One value: revision, logging, oldimage
- Default: revision
- hidetext - Whether or not to hide the text of these entries. Don't set this parameter if you want to leave the current status.
- Can be empty, or One value: yes, no
- hidesummary - Whether or not to hide the summaries of these entries. Don't set this parameter if you want to leave the current status.
- Can be empty, or One value: yes, no
- hideusername - Whether or not to hide the username of these entries. Don't set this parameter if you want to leave the current status.
- Can be empty, or One value: yes, no
- suppress - Whether or not to suppress these entries (unlikely to be available to all users)
- Example:
- Suppress the text, summary, and username, of revisions 1 and 2:
- api.php?action=revisiondelete&ids=1|2&token=123ABC&reason=Dissent&hidetext=Yes&hidesummary=Yes&hideusername=Yes&suppress=
Advertisement
Add Comment
Please, Sign In to add comment