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 throwsParameters
- identifier:
The identifier for the right to remove.
- handler:
A completion handler to call when the removal operation completes.
errorAn error object that indicates why the removal operation failed, or
nilif it succeeded.
Discussion
Removing a right also removes any resources stored along with the right, such as secrets.