The DELETE deletes the specified resource.
| Request has body | May |
|---|---|
| Successful response has body | May |
| Safe | No |
| Idempotent | Yes |
| Cacheable | No |
| Allowed in HTML forms | No |
The DELETE deletes the specified resource.
| Request has body | May |
|---|---|
| Successful response has body | May |
| Safe | No |
| Idempotent | Yes |
| Cacheable | No |
| Allowed in HTML forms | No |
DELETE /file.html HTTP/1.1
DELETE /file.html HTTP/1.1 Host: example.com
If a DELETE method is successfully applied, there are several response status codes possible:
202 (Accepted) status code if the action will likely succeed but has not yet been enacted. 204 (No Content) status code if the action has been enacted and no further information is to be supplied. 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>
| Specification |
|---|
| HTTP Semantics # DELETE |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
DELETE |
Yes |
12 |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
© 2005–2022 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/DELETE