# deleteOAuthClientSecret

Mutation · GraphQL API

Delete a disabled OAuth client secret.
To call this mutation you must obtain an OAuth Access Token with scope MANAGE_OAUTH_CLIENT_SECRETS,
the associated merchant must have [IP or hostname restrictions](https://developer.paypal.com/braintree/articles/risk-and-security/allowlisting) enabled and you must send your request from a host
that is allowed by the merchant's allowed hosts list.

## Authentication

- SERVER

## Input

- `input` (`DeleteOAuthClientSecretInput!`) — required

## Returns [DeleteOAuthClientSecretPayload](/braintree/graphql/reference/types/delete-o-auth-client-secret-payload)

Details about OAuth client secret delete operation.

### Returned fields

- `clientMutationId` (`String`): An identifier used to reconcile requests and responses. 255 characters maximum.

## Examples

### Delete OAuth client secret

Input fields for deleting an OAuth client secret.

```graphql
mutation deleteOAuthClientSecret($input: DeleteOAuthClientSecretInput!) {
  deleteOAuthClientSecret(input: $input) {
    clientMutationId
  }
}
```

---

[View the complete GraphQL schema on GitHub](https://raw.githubusercontent.com/braintree/graphql-api/refs/heads/master/schema.graphql)