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+). For older versions, you can use or  to get an edit token.

删除页面
页面可以通过 action=delete 删除. In addition to the delete right, other rights may be required, depending on the location and type of page. Deleting a user's .css page, for example, also requires the editusercss right.

参数
或 之一必须被设置.



例子
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: