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

# Delete Custom Instruction

> Permanently remove a custom translation instruction

Delete a custom instruction by ID. This cannot be undone.

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE "https://api-integration.ollang.com/integration/custom-instructions/507f1f77bcf86cd799439011" \
    -H "X-Api-Key: <your-api-key>"
  ```

  ```javascript JavaScript theme={null}
  const instructionId = "507f1f77bcf86cd799439011";

  await fetch(
    `https://api-integration.ollang.com/integration/custom-instructions/${instructionId}`,
    {
      method: "DELETE",
      headers: {
        "X-Api-Key": "<your-api-key>",
      },
    }
  );
  ```

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

  instruction_id = "507f1f77bcf86cd799439011"

  headers = {"X-Api-Key": "<your-api-key>"}

  requests.delete(
      f"https://api-integration.ollang.com/integration/custom-instructions/{instruction_id}",
      headers=headers,
  )
  ```
</RequestExample>

## Authorizations

This endpoint requires API key authentication.

* **Header name**: `X-Api-Key`
* **Header value**: Your API key from the [Ollang dashboard](https://lab.ollang.com)

## Path Parameters

<ParamField path="instructionId" type="string" required>
  The custom instruction’s unique identifier.
</ParamField>

## Response

A successful delete returns **204 No Content** with an empty body.

<ResponseExample>
  ```text 204 theme={null}
  ```

  ```json 404 theme={null}
  {
    "statusCode": 404,
    "message": "Custom instruction not found"
  }
  ```

  ```json 401 theme={null}
  {
    "error": "Unauthorized",
    "message": "Invalid or missing API key"
  }
  ```
</ResponseExample>
