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

# Delete Custom Function

> Delete a custom function

Permanently delete a custom function. The agent will no longer be able to call this function.

## Path Parameters

<ParamField path="id" type="string" required>
  UUID of the custom function to delete
</ParamField>

## Response

Returns a success message on deletion.

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE "https://api.magpipe.ai/functions/v1/custom-functions/789e0123-e89b-12d3-a456-426614174000" \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "message": "Custom function deleted"
  }
  ```

  ```json 404 theme={null}
  {
    "error": "Custom function not found"
  }
  ```
</ResponseExample>
