Gck.Object.prototype.destroy

function destroy(cancellable: Gio.Cancellable): Boolean {
    // Gjs wrapper for gck_object_destroy()
}
  

Destroy a PKCS\#11 object, deleting it from storage or the session. This call may block for an indefinite period.

cancellable

Optional cancellable object, or NULL to ignore.

Returns

Whether the call was successful or not.