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

# Delete Credential

> Delete a credential record. The underlying secret in your vault is not touched.

## Overview

Deletes a credential record owned by the caller. The actual secret inside your vault is unaffected — only the ScrapEngine reference (vault integration ID, path, field map, allow-list) is removed. Subsequent runs of the `authenticate` task action that reference this credential ID will fail with a not-found error.

## Path Parameters

<ParamField path="id" type="string" required={true}>
  Credential ID (UUID).
</ParamField>

## Example Request

<CodeGroup>
  ```bash cURL theme={null}
  curl -X DELETE "https://api.scrapengine.io/api/v1/credentials/2b5aa4c8-b9e6-4e58-9c80-1d4bfd0a3f01" \
    -H "Authorization: Bearer $SCRAPENGINE_API_KEY"
  ```

  ```javascript JavaScript theme={null}
  await fetch(
    "https://api.scrapengine.io/api/v1/credentials/2b5aa4c8-b9e6-4e58-9c80-1d4bfd0a3f01",
    {
      method: "DELETE",
      headers: { "Authorization": `Bearer ${process.env.SCRAPENGINE_API_KEY}` },
    },
  );
  ```

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

  requests.delete(
      "https://api.scrapengine.io/api/v1/credentials/2b5aa4c8-b9e6-4e58-9c80-1d4bfd0a3f01",
      headers={"Authorization": f"Bearer {SCRAPENGINE_API_KEY}"},
  )
  ```
</CodeGroup>

## Response

### Success Response (204)

Empty body.

### Error Responses

| Status | Description                                      |
| ------ | ------------------------------------------------ |
| `401`  | Unauthorized — invalid or missing API key.       |
| `404`  | Credential not found or not owned by the caller. |
