DELETE Method
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.
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 WebDAVDELETE 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