File.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. Virtual: delete_file

class File
int
delet

Parameters

cancellable Cancellable

optional GCancellable object, NULL to ignore. [allow-none]

Return Value

Type: int

TRUE if the file was deleted. FALSE otherwise.

Throws

GException on failure.

Meta