Skip to main content
DELETE
https://api.keywordsai.co
/
api
/
providers
/
{pk}
import requests

provider_pk = 123
url = f"https://api.keywordsai.co/api/providers/{provider_pk}/"
headers = {
    "Authorization": "Bearer YOUR_API_KEY"
}

response = requests.delete(url, headers=headers)
print(f"Status code: {response.status_code}")
Delete a specific custom provider from your organization.
Important:
  • This action is permanent and cannot be undone
  • Managed providers (is_managed: true) cannot be deleted as they are managed by Keywords AI
  • Deleting a provider may affect models that reference it

Path parameters

pk
integer
required
The provider’s primary key ID to delete.
123

Response

Returns no content on successful deletion.
import requests

provider_pk = 123
url = f"https://api.keywordsai.co/api/providers/{provider_pk}/"
headers = {
    "Authorization": "Bearer YOUR_API_KEY"
}

response = requests.delete(url, headers=headers)
print(f"Status code: {response.status_code}")