The DELETE method deletes the resource specified by the Request URI. When a DELETE request is used on a Collection object, it will delete the Collection and all children (as if a depth header of infinity had been submitted). (When submitting a DELETE request, no depth header is required)
A DELETE request will fail under the following conditions:
- If the object is locked.
- If any of the objects contained within the resource are unable to be deleted. (I.e. a parent will not be deleted if the children can't be deleted)
In this example the folder /Example/Files/ exists on the server
..... DELETE /Example/Files/ HTTP/1.1 .....
The folder in this example does not exist on the server
..... DELETE /DeleteFail/Files/ HTTP/1.1 .....
404 Not Found