---
title: "AuthorizationRightRemove(_:_:)"
framework: security
role: symbol
role_heading: Function
path: "security/authorizationrightremove(_:_:)"
---

# AuthorizationRightRemove(_:_:)

Removes a right from the policy database.

## Declaration

```swift
func AuthorizationRightRemove(_ authRef: AuthorizationRef, _ rightName: UnsafePointer<CChar>) -> OSStatus
```

## Parameters

- `authRef`: A valid authorization reference used to authorize modifications.
- `rightName`: An ASCII character string representing the right name. This function does not accept wildcard right names.

## Return Value

Return Value A result code. See Authorization Services Result Codes.

## Discussion

Discussion The right you remove must be an explicit right with no wildcards. Wildcard rights are for use by system administrators for site configuration.
