API:Delete

Token
To man-del>Special:MyLanguage/Manual:Page deletion|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.

Deleting pages
Pages can be deleted with 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</tt> page, for example, also requires the editusercss</tt> right.

Parameters
One of  or   must be set.

Example
In this example, all parameters are passed in a GET request just for the sake of simplicity. However, <tvar|act-del> </> requires POST requests; GET requests will cause an error.

Possible errors
In addition to api-err>Special:MyLanguage/API:Errors and warnings#Standard error messages</>|the usual stuff: