Skip to main content
DELETE
https://api.keywordsai.co
/
api
/
prompts
/
<prompt_id>
Delete prompt
curl --request DELETE \
  --url 'https://api.keywordsai.co/api/prompts/<prompt_id>/' \
  --header 'Authorization: Bearer <token>'
You can delete a prompt by sending a DELETE request to the prompt endpoint.

Example

import requests

url = "https://api.keywordsai.co/api/prompts/<prompt_id>/"
api_key = "YOUR_KEYWORDS_AI_API_KEY" # Replace with your actual Keywords AI API key
headers = {
    "Authorization": f"Bearer {api_key}",
    "Content-Type": "application/json"
}

response = requests.delete(url, headers=headers)
print(response.json())