Contents

removeRight(forIdentifier:completion:)

Removes a right from the right store given its unique identifier.

Declaration

func removeRight(forIdentifier identifier: String, completion handler: @escaping  @Sendable ((any Error)?) -> Void)
func removeRight(forIdentifier identifier: String) async throws

Parameters

  • identifier:

    The identifier for 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