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

# Delete Prompt

> Permanently delete a prompt and all its version history

Permanently deletes a prompt, including all associated version history and access grants. This action cannot be undone. The user must be the prompt owner, have write access, or be an admin.

## Path Parameters

<ParamField path="id" type="string" required>
  The unique prompt ID to delete
</ParamField>

## Response

<ResponseField name="Response" type="boolean" required>
  Returns `true` if the prompt was successfully deleted, `false` otherwise
</ResponseField>

## What Gets Deleted

When a prompt is deleted, the following are also removed:

* All version history entries for the prompt
* All access grants associated with the prompt
* The prompt record itself

## Error Responses

* **401 Unauthorized**: User lacks write access to this prompt
* **404 Not Found**: Prompt does not exist

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE "https://your-domain.com/api/prompts/id/550e8400-e29b-41d4-a716-446655440000/delete" \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  true
  ```
</ResponseExample>
