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

# Revoke and Purge TRACES NT Credentials

> Permanently delete your organization's TRACES NT credentials from AgriBackup's Vault, revoking DDS submission delegation immediately.

Use this endpoint to permanently remove your organization's TRACES NT credentials from AgriBackup's secure Vault. Deleting the credentials revokes delegation immediately — any subsequent DDS submission attempts will fail until new credentials are ingested. Because AgriBackup uses a stateless transit-based encryption model, clearing the stored ciphertext reference completely purges the secret from the system; there is no soft-delete or recovery path. This action is appropriate when offboarding, rotating TRACES NT accounts at the source, or responding to a credential compromise.

**`DELETE /api/v1/enterprise/eudr/credentials/traces`**

## Request Parameters

This endpoint accepts no request body and no query parameters. Authentication is performed via your enterprise API key.

## Code Examples

<CodeGroup>
  ```python Python theme={null}
  import agribackup
  from agribackup.rest import ApiException

  configuration = agribackup.Configuration(host="https://live.agribackup.com/api/v1")
  configuration.api_key["ApiKeyAuth"] = "sk_live_YOUR_API_KEY"

  with agribackup.ApiClient(configuration) as api_client:
      try:
          api_instance = agribackup.EnterpriseCredentialsApi(api_client)
          api_instance.delete_traces_credentials()
          print("TRACES NT credentials have been purged.")
      except ApiException as e:
          print("Exception when calling API: %s\n" % e)
  ```

  ```javascript Node.js theme={null}
  import { AgriBackupClient } from "@agribackup/sdk";

  const client = new AgriBackupClient({
    apiKey: "sk_live_YOUR_API_KEY",
    baseUrl: "https://live.agribackup.com/api/v1",
  });

  async function revokeCredentials() {
    try {
      await client.credentials.deleteTracesCredentials();
      console.log("TRACES NT credentials have been purged.");
    } catch (error) {
      console.error(error);
    }
  }

  revokeCredentials();
  ```

  ```bash cURL theme={null}
  curl --request DELETE \
    --url https://live.agribackup.com/api/v1/enterprise/eudr/credentials/traces \
    --header "Authorization: Bearer sk_live_YOUR_API_KEY"
  ```
</CodeGroup>

## Response

A `204 No Content` response confirms the credentials have been permanently purged from Vault. No response body is returned. After this call, the [Check Status](/sdks/enterprise-credentials/check-traces-nt-credential-delegation-status) endpoint will return a `404 Not Found` until new credentials are ingested.

```
HTTP/1.1 204 No Content
X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 995
X-RateLimit-Reset: 1751400000
```

## Error Responses

| HTTP Status             | Error Code     | Description                                                                                             |
| ----------------------- | -------------- | ------------------------------------------------------------------------------------------------------- |
| `401 Unauthorized`      | `UNAUTHORIZED` | The `Authorization` header is absent or the bearer token is not recognised.                             |
| `403 Forbidden`         | `FORBIDDEN`    | Your API key does not have the required scope to delete credentials for this organization.              |
| `404 Not Found`         | `NOT_FOUND`    | No TRACES NT credentials are currently stored for this organization. They may have already been purged. |
| `429 Too Many Requests` | `RATE_LIMITED` | You have exceeded the hourly rate limit. Check `X-RateLimit-Reset` for your reset time.                 |

```json theme={null}
{
  "code": "NOT_FOUND",
  "message": "No TRACES NT credentials found for this organization",
  "details": []
}
```
