--- title: DELETE slug: Web/HTTP/Methods/DELETE translation_of: Web/HTTP/Methods/DELETE ---
{{HTTPSidebar}}

Die Request-Methode HTTP DELETE löscht die angegebene Ressource.

 

Request hat einen Körper Kann
Erfolgreiche Response hat Körper Kann
{{Glossary("Safe")}} Nein
{{Glossary("Idempotent")}} Ja
{{Glossary("Cacheable")}} Nein
In HTML Formularen erlaubt  Nein

Syntax

DELETE /file.html HTTP/1.1

Beispiel

Request

DELETE /file.html HTTP/1.1

Responses

Bei erfolgreicher Anwendung einer DELETE-Methode sind mehrere Antwortzustandscodes möglich:

HTTP/1.1 200 OK
Date: Wed, 21 Oct 2015 07:28:00 GMT

<html>
  <body>
    <h1>File deleted.</h1>
  </body>
</html>

Spezifikationen

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

Browser Kompatibilität

{{Compat("http.methods.DELETE")}}

Siehe auch