Delete profile
DELETE /api/organizations/{org_id}/profiles/{name}
Delete an LLM profile. Blocked with 409 if any of the org's Agent Profiles still reference this LLM profile by llm_profile_ref (the SDK find_referrers FK guard) — both collections live on the same org row, so the SELECT ... FOR UPDATE lock makes the referrer check and the delete atomic.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
org_id | path | `string | null` | yes |
name | path | string | yes | — |
Responses
| Status | Description |
|---|---|
200 | Successful Response |
422 | Validation Error |
Response body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | yes | — |
message | string | yes | — |
Operation ID: delete_profile_api_organizations__org_id__profiles__name__delete