delete_with_headers_sync
Description:
public bool delete_with_headers_sync (string uri, string? depth, string? etag, MessageHeaders? in_headers, Cancellable? cancellable = null) throws Error
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.
The optional in_headers
can contain additional headers to be added to the request. These headers replace any existing in the
request headers, without support for the list-values headers.
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 |
in_headers |
additional MessageHeaders to be added to the request, or |
cancellable |
optional Cancellable object, or |
Returns:
Whether succeeded. |