API:Delete/zh

使用POST请求来刪除页面.

例子
此流程有4個步驟：


 * 1) 從取得登入令牌.
 * 1) Send a POST request with the fetched login token and user information to the API.
 * 1) Retrieve a CSRF token when logged in.
 * 1) Send a post request to delete a page with the fetched CSRF token.

参数历史

 * v1.27: 啟用
 * v1.17: 棄用 ,
 * v1.14: 啟用
 * v1.13: 啟用, ,

附加提醒

 * For older versions of MediaWiki, you can use or  to get an edit token in place of login token.
 * While executing the code snippets provided on this page, remember to use  as the endpoint, so that you don't accidentally delete pages on production wikis.
 * In addition to the  right, other rights may be required, depending on the location and type of page.

Deleting a user's  page, for example, also requires the   right.