DELETE

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)

Example 1: Successful DELETE

In this example the folder /Example/Files/ exists on the server

Request

.....
DELETE  /Example/Files/ HTTP/1.1
.....

Response

None

 

Example 2: Unsuccessful DELETE

Request

The folder in this example does not exist on the server

.....
DELETE  /DeleteFail/Files/ HTTP/1.1
.....

Response

404 Not Found

Copyright 2013 CHLSoftware. All rights reserved. All trademarks acknowledged.