Credentials
Delete Model from Credential
Removes a specific model from an Ollama credential. Deletes the credential if no models remain.
DELETE
Path Parameters
Credential ID
Model name to remove
Response
Indicates if the model was removed successfully
Success or error message. Can be either:
- “Model removed successfully”
- “Credential deleted (no models remaining)“
Notes
This endpoint is specifically for Ollama credentials that manage multiple models.
- When the last model is removed, the entire credential is automatically deleted
- This operation is only valid for Ollama provider credentials
- Attempting to use this on non-Ollama credentials will return a 400 error
- Model names must match exactly (case-sensitive)
Behavior
- If the credential has multiple models, the specified model is removed
- If the credential has only one model (the one being deleted), the entire credential is deleted
- The response message indicates which action was taken

