We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE

The HTTP DELETE request method 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


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

    <h1>File deleted.</h1> 


Specification Title
RFC 7231, section 4.3.5: DELETE Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes Yes Yes Yes Yes Yes
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes Yes Yes Yes Yes Yes Yes

See also

Document Tags and Contributors

 Contributors to this page: AjoyBhatia, fscholz, teoli
 Last updated by: AjoyBhatia,