---
title: "Delete an API credential"
method: DELETE
path: "/v2/api-credentials/{apiCredentialId}"
tags: ["API credentials"]
---

# Delete an API credential

`DELETE /v2/api-credentials/{apiCredentialId}`

## Request

- Base URL: `https://api.sigmacomputing.com`
- URL: `https://api.sigmacomputing.com/v2/api-credentials/{apiCredentialId}`
- Auth: HTTP bearer

This endpoint archives an API credential so it can no longer be associated with new API connectors. For more information on API credentials, see [Configure API credentials and connectors in Sigma](https://help.sigmacomputing.com/docs/configure-api-credentials-and-connectors-in-sigma).

### Usage notes
- The user making this request must be assigned an account type with the **Manage API connectors** permission enabled and have **Can edit** access to the API credential.
- Retrieve the **apiCredentialId** by calling the [/v2/api-credentials](https://help.sigmacomputing.com/reference/list-api-credentials) endpoint.
- Archiving a credential does not automatically unbind any API connectors that reference it.

### Usage scenarios
- **Credential decommissioning:** Remove credentials for decommissioned services or expired tokens.
- **Security cleanup:** Archive compromised or rotated credentials to prevent accidental reuse.

## Path parameters

- `apiCredentialId` string, required

## Response `200`

The response body.

- ApiCredentialsDeleteApiCredentialResponse200

---

[API](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api.md) - [All operations](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/revisions/fb6036208c49?raw)
