import requests file_id = "file-abc123" url = f"https://api.keywordsai.co/api/files/{file_id}/" headers = { "Authorization": "Bearer YOUR_API_KEY" } response = requests.delete(url, headers=headers) print(response.json())
{ "id": "file-abc123", "object": "file", "deleted": true }
file-xxxxx
Example
file-abc123
Was this page helpful?