Secret.Item.prototype.delete_sync

function delete_sync(cancellable: Gio.Cancellable): Boolean {
    // Gjs wrapper for secret_item_delete_sync()
}
  

Delete this secret item.

This method may block indefinitely and should not be used in user interface threads. The secret service may prompt the user. Secret.Service.prototype.prompt will be used to handle any prompts that show up.

cancellable

optional cancellation object

Returns

whether the item was successfully deleted or not