Contents

removeRight(_:completion:)

Removes a right from the right store given an instance of that right.

Declaration

func removeRight(_ right: LAPersistedRight, completion handler: @escaping  @Sendable ((any Error)?) -> Void)
func removeRight(_ right: LAPersistedRight) async throws

Parameters

  • right:

    An instance that represents the right to remove.

  • handler:

    A completion handler to call when the removal operation completes.

    error

    An error object that indicates why the removal operation failed, or nil if it succeeded.

Discussion

Removing a right also removes any resources stored along with the right, such as secrets.

See Also

Removing stored rights