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
command=delete
(main | readinglists | delete)
- This module is internal or unstable. Its operation may change without notice.
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Source: ReadingLists
- License: GPL-2.0-or-later
Delete a list belonging to the current user.
Deleted lists remain available for some amount of time through the readinglists and readinglistentries modules (via the changedsince parameter). There is no way to undelete.
Parameters:
- list
List ID. Required unless doing batch deletion.
- Type: integer
- batch
Batch data for deleting multiple lists in a single request, in the form of a JSON array with one or more objects with a list field.
Examples:
- Delete the reading list with ID 11.
- api.php?action=readinglists&command=delete&list=11&token=123ABC [open in sandbox]
- Delete multiple lists.
- api.php?action=readinglists&command=delete&batch=%5B%7B%22list%22%3A11%7D%2C%7B%22list%22%3A12%7D%5D&token=123ABC [open in sandbox]