DELETE Method (WebDAV)
Topic Last Modified: 2006-06-13
The WebDAV DELETE method deletes a resource at the specified Uniform Resource Identifier (URI). The DELETE method can be used to delete collection and property resources.
Only a Depth Header value of "infinity" may be included in a DELETE method on a collection resource. If no Depth Header is included, the DELETE method acts as if a Depth Header value of "infinity" had been included.
The DELETE method may be included in the scope of a transaction by submitting a Transaction Header with a lock token that corresponds to that transaction.
Note
See Authentication and Security Using WebDAV for more information.
The list of WebDAV Protocol Status Codes in the following table is not comprehensive. For information about 500-level status codes, see WebDAV Status Codes: 500s.
Status Codes
Status Code | Meaning |
---|---|
204 (No Content) |
Standard success response. |
423 (Locked) |
The destination resource is locked. |
Example
The following example illustrates a WebDAV DELETE method. The operation is completed successfully and a status code of 204 (No Content) is returned.
Request
DELETE /folder1 HTTP/1.1
Host: www.domain.example.com
Response
HTTP/1.1 204 No Content