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 throwsParameters
- right:
An instance that represents 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.