FileIF.delet

Deletes a file. If the @file is a directory, it will only be deleted if it is empty. This has the same semantics as g_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.

interface FileIF
bool
delet

Parameters

cancellable Cancellable

optional #GCancellable object, %NULL to ignore

Return: %TRUE if the file was deleted. %FALSE otherwise.

Throws

GException on failure.

Meta