Path: blob/main/files/en-us/web/http/methods/delete/index.md
6532 views
------{{HTTPSidebar}}
The HTTP DELETE request method deletes the specified resource.
| Request has body | May |
|---|---|
| Successful response has body | May |
| {{Glossary("Safe/HTTP", "Safe")}} | No |
| {{Glossary("Idempotent")}} | Yes |
| {{Glossary("Cacheable")}} | No |
| Allowed in HTML forms | No |
Syntax
Example
Request
Responses
If a DELETE method is successfully applied, there are several response status codes possible:
A {{HTTPStatus("202")}} (
Accepted) status code if the action will likely succeed but has not yet been enacted.A {{HTTPStatus("204")}} (
No Content) status code if the action has been enacted and no further information is to be supplied.A {{HTTPStatus("200")}} (
OK) status code if the action has been enacted and the response message includes a representation describing the status.
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
HTTP status: {{HTTPStatus("200")}}, {{HTTPStatus("202")}}, {{HTTPStatus("204")}}