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

# Delete Credential

> Deletes a specific credential for the authenticated user

## Path Parameters

<ParamField path="id" type="string" required>
  Credential ID to delete
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  Indicates if the credential was deleted successfully
</ResponseField>

<ResponseField name="message" type="string">
  Success or error message
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request DELETE \
    --url http://localhost:3000/api/v1/credentials/cred_123abc \
    --header 'Authorization: Bearer <token>'
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('http://localhost:3000/api/v1/credentials/cred_123abc', {
    method: 'DELETE',
    headers: {
      'Authorization': 'Bearer <token>'
    }
  });

  const data = await response.json();
  ```

  ```python Python theme={null}
  import requests

  url = "http://localhost:3000/api/v1/credentials/cred_123abc"
  headers = {"Authorization": "Bearer <token>"}

  response = requests.delete(url, headers=headers)
  data = response.json()
  ```
</RequestExample>

<ResponseExample>
  ```json 200 - Success theme={null}
  {
    "success": true,
    "message": "Credential deleted successfully"
  }
  ```

  ```json 401 - Unauthorized theme={null}
  {
    "success": false,
    "message": "Unauthorized"
  }
  ```

  ```json 404 - Not Found theme={null}
  {
    "success": false,
    "message": "Credential not found"
  }
  ```
</ResponseExample>

## Notes

<Warning>
  This action is **irreversible**. Once a credential is deleted, it cannot be recovered.
</Warning>

* Deleting a credential will remove all associated data
* Any services using this credential will lose access
* For Ollama credentials, deleting removes all associated models
