Gio.File.prototype.trash_async
function trash_async(io_priority: Number(gint), cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void { // Gjs wrapper for g_file_trash_async() }
Asynchronously sends file to the Trash location, if possible.
Since 2.38
- io_priority
the [I/O priority][io-priority] of the request
- cancellable
optional Gio.Cancellable object, null to ignore
- callback
a Gio.AsyncReadyCallback to call when the request is satisfied