Prompt delete
Prompt
Integration methods
Prompt
- Prompt creation
- Prompt retrieval
- Prompt update
- Prompt delete
Multimodal integrations
Evaluations
Model
Prompt delete
Prompt
DELETE
/
api
/
prompts
/
<prompt_id>
curl --request DELETE \
--url https://api.keywordsai.co/api/prompts/%3Cprompt_id%3E/ \
--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())
curl --request DELETE \
--url https://api.keywordsai.co/api/prompts/%3Cprompt_id%3E/ \
--header 'Authorization: Bearer <token>'