@delete


Description:

public abstract bool @delete (Cancellable? cancellable = null) throws Error

Deletes a file.

If the this is a directory, it will only be deleted if it is empty. This has the same semantics as unlink.

If cancellable is not null, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error g_io_error_cancelled will be returned.

Parameters:

this

input File

cancellable

optional Cancellable object, null to ignore

Returns:

true if the file was deleted. false otherwise.