MediaWiki API 帮助
这是自动生成的MediaWiki Action API文档页面。
command=deleteentry
(main | readinglists | deleteentry)
- 此模块是内部或不稳定的,不应该使用。它的操作可以更改而不另行通知。
- 此模块需要读取权限。
- 此模块需要写入权限。
- 此模块只允许POST请求。
- 来源:ReadingLists
- 许可协议:GPL-2.0-or-later
删除来自与当前用户相关的列表中的页面。
具体参数:
其他通用参数可用。
- entry
项目ID。除非进行批量删除否则必要。
- 类型:整数
- project
Project name of the wiki hosting the page. Must be used together with title. Deletes all entries matching the given project and title.
- 不能超过255字节。
- title
Page title to delete. Must be used together with project.
- 不能超过383字节。
- batch
用于在单一请求中删除多个列表项的批量数据,有一个或多个带entry字段对象的JSON数组形式。
例子:
- 删除ID为8的列表项。
- api.php?action=readinglists&command=deleteentry&entry=8&token=123ABC [在沙盒中打开]
- 删除多个列表项。
- api.php?action=readinglists&command=deleteentry&batch=%5B%7B%22entry%22%3A8%7D%2C%7B%22entry%22%3A9%7D%5D&token=123ABC [在沙盒中打开]
- 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 [在沙盒中打开]
- 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 [在沙盒中打开]