Delete an AI provider
DELETE /aisix/admin/providers/{provider_id}
DELETE /aisix/admin/providers/{provider_id}Interactive request editor loads with JavaScript.
In: header
Path Parameters
AI Provider ID.
1 <= lengthQuery Parameters
AI Gateway group ID (filter resources by group).
1 <= lengthResponse Body
application/json
application/json
application/json
application/json
curl -X DELETE "$API_BASE_URL/aisix/admin/providers/provider-abc123?ai_gateway_group_id=abc1234567890"Operation completed successfully with no response body.
""Bad Request — The request was malformed or contained invalid parameters. Check the error_msg field for details.
{
"value": {},
"error_msg": "error message"
}Not Found — The requested resource does not exist or has been deleted.
{
"value": {},
"error_msg": "error message"
}Conflict — A resource with the same unique identifier (e.g., name) already exists.
{
"value": {},
"error_msg": "error message"
}Complete operation details and schema variants
DELETE /aisix/admin/providers/{provider_id}
Delete an AI provider
IAM Action: ai_gateway:DeleteAIProvider, Resource: arn:api7:ai_gateway:aigatewaygroup/%s
Deletes the specified AI provider configuration and removes it from etcd. Returns 409 Conflict if any AI models reference this provider.
Parameters
ai_gateway_group_id(query, string, required): AI Gateway group ID (filter resources by group).provider_id(path, string, required): AI Provider ID.
Responses
200: Operation completed successfully with no response body.400: Bad Request — The request was malformed or contained invalid parameters. Check the error_msg field for details.value(object, optional): The specific resource.error_msg(string, optional): The error message.404: Not Found — The requested resource does not exist or has been deleted. Response fields (application/json): identical toDELETE /aisix/admin/providers/{provider_id}, response 400 above.409: Conflict — A resource with the same unique identifier (e.g., name) already exists. Response fields (application/json): identical toDELETE /aisix/admin/providers/{provider_id}, response 400 above.
cURL
curl -X DELETE '$API_BASE_URL/aisix/admin/providers/{provider_id}'