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

# Delete topic

> Delete a topic and all prompts inside it.

Permanently deletes a topic and **all prompts** it contains. Use with care — there is no undo.

### Path parameters

<ParamField path="topicId" type="string" required>
  Topic UUID.
</ParamField>

### Request

```bash theme={null}
curl -s -X DELETE \
  -H "x-spotlight-api-key: YOUR_API_KEY" \
  "https://app.get-spotlight.com/api/v1/topics/TOPIC_ID"
```

### Response

```json theme={null}
{
  "deleted": true,
  "remainingSlots": 100
}
```

<Warning>
  This operation deletes all prompts under the topic. Historical analysis results that referenced those prompts are not deleted, but the prompts themselves will no longer be returned in future API calls.
</Warning>
