> ## Documentation Index
> Fetch the complete documentation index at: https://cobalt-55-abhishek.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Event

> Remove a custom event from your org's default app.

Remove a custom event (trigger) from your organization's default custom application. The response is the updated list of remaining events.

## Authentication

Events are defined at the org level, so this endpoint uses API-key auth.

<ParamField header="x-api-key" type="string" required>
  Your Refold API key. Find it in **Settings → Credentials**.
</ParamField>

## Path Parameters

<ParamField path="event_id" type="string" required>
  The event ID to delete.
</ParamField>

## Response

<Tabs>
  <Tab title="200 OK">
    Returns the array of remaining events after deletion.
  </Tab>

  <Tab title="404 Not Found">
    <ResponseField name="status_code" type="integer">HTTP status code.</ResponseField>
    <ResponseField name="http_error_type" type="string">Error category.</ResponseField>
    <ResponseField name="error" type="string">Internal error code.</ResponseField>
    <ResponseField name="message" type="string">Human-readable error description.</ResponseField>
  </Tab>
</Tabs>

<ResponseExample>
  ```json 200 theme={null}
  [
    {
      "_id": "69f89fa2b195883025cfcb65",
      "name": "candidate_created",
      "response": [
        { "key": "event", "type": "text" },
        { "key": "payload", "type": "object" }
      ]
    }
  ]
  ```

  ```json 404 theme={null}
  {
    "status_code": 404,
    "http_error_type": "NOT_FOUND",
    "error": "RESOURCE_NOT_FOUND",
    "message": "Event not found"
  }
  ```
</ResponseExample>

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE "https://app.refold.ai/api/v2/public/application/event/{event_id}" \
    -H "x-api-key: YOUR_API_KEY"
  ```
</RequestExample>
