---
title: "removeAllRights(completion:)"
framework: localauthentication
role: symbol
role_heading: Instance Method
path: "localauthentication/larightstore/removeallrights(completion:)"
---

# removeAllRights(completion:)

Removes all rights associated with this client from the right store.

## Declaration

```swift
func removeAllRights(completion handler: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func removeAllRights() async throws
```

## Parameters

- `handler`: A completion handler to call when the removal operation completes.

## Discussion

Discussion important: You can call this method from synchronous code using a completion handler, as shown on this page, or you can call it as an asynchronous method that has the following declaration: func removeAllRights() async throws For information about concurrency and asynchronous code in Swift, see Calling Objective-C APIs Asynchronously. Removing rights also removes any resources stored along with the rights, such as secrets.

## See Also

### Removing stored rights

- [removeRight(_:completion:)](localauthentication/larightstore/removeright(_:completion:).md)
- [removeRight(forIdentifier:completion:)](localauthentication/larightstore/removeright(foridentifier:completion:).md)
