Gio.File.prototype.delete_finish

function delete_finish(result: Gio.AsyncResult): Boolean {
    // Gjs wrapper for g_file_delete_finish()
}
  

Finishes deleting a file started with Gio.File.prototype.delete_async.

Since 2.34

result

a Gio.AsyncResult

Returns

true if the file was deleted. false otherwise.