MediaWiki API help
This is an auto-generated MediaWiki Action API documentation page.
command=deleteentry
(main | readinglists | deleteentry)
- This module is internal or unstable, and you should not use it. 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 page from a list belonging to the current user.
Specific parameters:
Other general parameters are available.
- entry
Entry ID. Required unless doing batch deletion.
- Type: integer
- project
Project name of the wiki hosting the page. Must be used together with title. Deletes all entries matching the given project and title.
- Cannot be longer than 255 bytes.
- title
Page title to delete. Must be used together with project.
- Cannot be longer than 383 bytes.
- batch
Batch data for deleting multiple list entries in a single request, in the form of a JSON array with one or more objects with an entry field.
Examples:
- Delete the list entry with ID 8.
- api.php?action=readinglists&command=deleteentry&entry=8&token=123ABC [open in sandbox]
- Delete multiple list entries.
- api.php?action=readinglists&command=deleteentry&batch=%5B%7B%22entry%22%3A8%7D%2C%7B%22entry%22%3A9%7D%5D&token=123ABC [open in sandbox]
- Delete all entries for the page Dog from project en.wikipedia.org.
- api.php?action=readinglists&command=deleteentry&project=https://en.wikipedia.org&title=Dog&token=123ABC [open in sandbox]
- Delete all entries for the page Garfield the Cat from project @local.
- api.php?action=readinglists&command=deleteentry&project=@local&title=Garfield%20the%20Cat&token=123ABC [open in sandbox]