> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Revoke Credentials

> Invalidate a credential, rendering it no longer trustworthy or verifiable

To revoke a credential, you can directly use the [revoke credential API](https://docs.crossmint.com/api-reference/verifiable-credentials/credentials/revoke-credential.md). Burning the NFT associated with the credential via the [burn-nft](https://docs.crossmint.com/api-reference/minting/nfts/burn-nft.md) API accomplishes the same result.

Issuers can revoke a Verifiable Credential without the subject's intermediation.

To revoke the credential, copy the `revokeCredential.js` file from below, use your API key, the credentialId, and run the file from your terminal.

```javascript revokeCredential.js theme={null}
const options = {
    method: "DELETE",
    headers: {
        "X-API-KEY": "YOUR_API_KEY",
    },
};

fetch(`https://staging.crossmint.com/api/v1-alpha1/credentials/${credentialId}`, options)
    .then((response) => response.json())
    .then((response) => console.log(JSON.stringify(response)))
    .catch((err) => console.error(err));
```

```shell theme={null}
node revokeCredential.js
```

> [card] [API Reference](https://docs.crossmint.com/api-reference/verifiable-credentials/credentials/revoke-credential.md)
>
> Test any API in seconds directly from the docs.

> [card] [Talk to an expert](https://www.crossmint.com/contact/sales)
>
> Contact our sales team for support.
