⧼api-help-title⧽
action=revisiondelete
(main | revisiondelete)
- ⧼api-help-flag-readrights⧽
- ⧼api-help-flag-writerights⧽
- ⧼api-help-flag-mustbeposted⧽
- ⧼api-help-source⧽
- ⧼api-help-license⧽
- type
- ⧼apihelp-revisiondelete-param-type⧽
- This parameter is required.
- One of the following values: archive, filearchive, logging, oldimage, revision
- target
- ⧼apihelp-revisiondelete-param-target⧽
- ids
- ⧼apihelp-revisiondelete-param-ids⧽
- This parameter is required.
- Separate values with "|", or prefix the list with U+001F and separate with U+001F.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- hide
- ⧼apihelp-revisiondelete-param-hide⧽
- Values (separate with U+007C (pipe), or prefix the list with U+001F and separate with U+001F): comment, content, user
- show
- ⧼apihelp-revisiondelete-param-show⧽
- Values (separate with U+007C (pipe), or prefix the list with U+001F and separate with U+001F): comment, content, user
- suppress
- ⧼apihelp-revisiondelete-param-suppress⧽
- One of the following values: no, nochange, yes
- Default: nochange
- reason
- ⧼apihelp-revisiondelete-param-reason⧽
- tags
- ⧼apihelp-revisiondelete-param-tags⧽
- Values (separate with U+007C (pipe), or prefix the list with U+001F and separate with U+001F):
- token
- ⧼api-help-param-token⧽
- This parameter is required.
- ⧼apihelp-revisiondelete-example-revision⧽
- api.php?action=revisiondelete&target=Main%20Page&type=revision&ids=12345&hide=content&token=123ABC ⧼api-help-open-in-apisandbox⧽
- ⧼apihelp-revisiondelete-example-log⧽
- api.php?action=revisiondelete&type=logging&ids=67890&hide=content|comment|user&reason=BLP%20violation&token=123ABC ⧼api-help-open-in-apisandbox⧽