Skip to content

Delete a MaaSModelRef

DELETE /api/v1/maasmodel/{namespace}/{name}

DELETE /maas/api/v1/maasmodel/{namespace}/{name}

Deletes a MaaSModelRef Kubernetes custom resource by namespace and name. K8s calls: DELETE /k8s/v1/maasmodelref/:namespace/:name

Authorization

Parameters

Name In Type Required Description
namespace path string Yes

Namespace of the MaaSModelRef

name path string Yes

Name of the MaaSModelRef to delete

Responses

Status Description Response body
200 OK

MaaSModelRef deleted successfully

object

application/json

401 Unauthorized

Unauthorized

None
404 Not Found

MaaSModelRef not found

ErrorResponse

application/json

500 Internal Server Error

Internal Server Error

ErrorResponse

application/json

200 OK response body

Property Type Required Description
message string No

Success message

Example request

curl -X DELETE "/maas/api/v1/maasmodel/{namespace}/{name}" \
  -H "Authorization: Bearer $TOKEN"

Example response

200 OK, application/json

{
  "message": "MaaSModelRef 'granite-3-8b-instruct' deleted successfully"
}