delete_resource


Description:

public virtual async bool delete_resource (Source source, Cancellable? cancellable) throws Error

Asynchronously deletes a server-side resource described by source.

The source must be a child of this's collection source.

After the server-side resource is successfully deleted, the implementor must also remove source from the this's server. This can either be done immediately or in response to some "resource deleted" notification from the server.

When the operation is finished, callback will be called. You can then call delete_resource.end to get the result of the operation.

Parameters:

this

an CollectionBackend

source

an Source

cancellable

optional Cancellable object, or null

callback

a TaskReadyCallback to call when the request is satisfied

user_data

data to pass to the callback function