delete_sync
Description:
Deletes a resource identified by uri
on the server.
The URI can reference a collection, in which case depth
should be
WEBDAV_DEPTH_INFINITY. Use depth
WEBDAV_DEPTH_THIS when deleting a regular resource, or null
, to let the server use default Depth.
The etag
argument is used to avoid clashes when overwriting existing resources. Use null
etag
when
deleting collection resources or to force the deletion, otherwise provide a valid ETag of a non-collection resource to verify that the version
requested to delete is the same as on the server.
Note that the actual usage of etag
is also influenced by
avoid_ifmatch property of the associated
Source.
Parameters:
this | |
uri |
URI of the resource to delete |
depth |
optional requested depth, can be one of WEBDAV_DEPTH_THIS or
WEBDAV_DEPTH_INFINITY, or |
etag |
an optional ETag of the resource, or |
cancellable |
optional Cancellable object, or |
Returns:
Whether succeeded. |