Delete Model
Delete a Marqtuned model.
Note: This operation cannot be undone, and the deleted model can't be recovered.
DELETE /models/{model_id}
Example
curl -XDELETE https://marqtune.marqo.ai/models/{model_id} \
--header 'x-api-key: {api_key}'
from marqtune.client import Client
url = "https://marqtune.marqo.ai"
api_key = "{api_key}"
marqtune_client = Client(url=url, api_key=api_key)
marqtune_client.delete_model({model_id})
Response: 200 OK
{
"statusCode": 200,
"body": {
"message": "model deleted successfully"
}
}
Response: 400 (Already Deleted)
Model is already deleted.
{
"statusCode": 400,
"body": {
"message": "model is already deleted"
}
}
Response: 404 (Not Found)
Model with the provided ID doesn't exist.
{
"statusCode": 404,
"body": {
"message": "model not found"
}
}
Response: 400 (Invalid Request)
Request path or method is invalid.
{
"statusCode": 400,
"body": {
"message": "Invalid request method"
}
}
Response: 401 (Unauthorised)
Unauthorised. Check your API key and try again.
{
"message": "Unauthorized."
}
Response: 500 (Internal server error)
Internal server error. Check your API key and try again.
{
"message": "Internal server error."
}