# Remove a credential policy

`DELETE https://api.cademi.com.br/api/v3/credentials/{credential_id}/policies/{policy_id}`

Operation ID: `credentials.policies.delete` · API v3

Removes a policy from a credential. The change publishes a new policy revision containing all remaining policies.

Removing the last policy is allowed and leaves the credential without access to any resource.

A credential cannot modify its own policies.

Required permissions: `credentials.policies.manage`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `credential_id` | path | string | yes |  |
| `policy_id` | path | string | yes |  |

## Responses

### 204

The policy was removed successfully.

### 401

The credential is missing, malformed, expired, or revoked.

Body: Error.

### 403

The current credentials do not have the permission required by this operation.

Body: Error.

### 404

The credential or policy was not found, the policy is not part of the credential's active policy revision, or the resource is not accessible with the current credentials.

Body: Error.

Full schema: https://cademi.dev/openapi/v3.json
