API:Delete/zh

令牌
To delete a page, a CSRF token is required. The CSRF token is the same for all pages, but changes at every login. CSRF tokens can be obtained via  with   (MW 1.24+).

删除页面
页面可以通过 action=delete 删除.

参数

 * title:  想要删除的页面
 * pageid: 想要删除的页面的ID
 * token:  从上一个请求中获取的防范跨站请求攻击令牌，请注意要将  经过urlencode 转为.
 * reason: The reason for the deletion (optional). If not provided, an automatically generated reason will be used.
 * watch:  将页面添加到监视列表
 * unwatch: 从监视列表中移除页面
 * oldimage: The name of the old image to delete as provided by

例子
In this example, all parameters are passed in a GET request just for the sake of simplicity. However,  requires POST requests; GET requests will cause an error.

可能的错误
In addition to the usual stuff: