File.deleteAsync

void deleteAsync(int ioPriority, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

Asynchronously delete a file. If the file is a directory, it will only be deleted if it is empty. This has the same semantics as glib.global.unlink.

Parameters

ioPrioritythe I/O priority of the request
cancellableoptional #GCancellable object, null to ignore
callbacka #GAsyncReadyCallback to call when the request is satisfied