delete_page#

wikibaseintegrator.wbi_helpers.delete_page(title=None, pageid=None, reason=None, deletetalk=False, watchlist='preferences', watchlistexpiry=None, login=None, **kwargs)[source]#

Delete a page

Parameters:
  • title (str | None, default: None) – Title of the page to delete. Cannot be used together with pageid.

  • pageid (int | None, default: None) – Page ID of the page to delete. Cannot be used together with title.

  • reason (str | None, default: None) – Reason for the deletion. If not set, an automatically generated reason will be used.

  • deletetalk (bool, default: False) – Delete the talk page, if it exists.

  • watchlist (str, default: 'preferences') – Unconditionally add or remove the page from the current user’s watchlist, use preferences (ignored for bot users) or do not change watch. One of the following values: nochange, preferences, unwatch, watch

  • watchlistexpiry (str | None, default: None) – Watchlist expiry timestamp. Omit this parameter entirely to leave the current expiry unchanged.

  • login (_Login | None, default: None) – A wbi_login.Login instance

  • kwargs (Any)

Return type:

dict

Returns: