The HTTP DELETE request method deletes the specified resource.
Syntax
DELETE /file.html HTTP/1.1
Example
Request
DELETE /file.html HTTP/1.1
Responses
If a DELETE
method is successfully applied, there are several response status codes possible:
A 202
(Accepted
) status code if the action will likely succeed but has not yet been enacted.
A 204
(No Content
) status code if the action has been enacted and no further information is to be supplied.
A 200
(OK
) status code if the action has been enacted and the response message includes a representation describing the status.
HTTP/1.1 200 OK
Date: Wed, 21 Oct 2015 07:28:00 GMT
<html>
<body>
<h1>File deleted.</h1>
</body>
</html>
Specifications
Browser compatibility
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Feature Chrome Firefox Edge Internet Explorer Opera Safari Basic Support (Yes) (Yes) (Yes) (Yes) (Yes) (Yes)
Feature Android Chrome for Android Edge mobile Firefox for Android IE mobile Opera Android iOS Safari Basic Support (Yes) (Yes) (Yes) (Yes) (Yes) (Yes) (Yes)
See also
Document Tags and Contributors
Last updated by:
fscholz ,
Jun 7, 2017, 9:51:11 AM