cancel
Showing results for 
Search instead for 
Did you mean: 

How can I delete or remove deployed models?

martin_tempel
Discoverer
0 Kudos

Hi,

I want to deploy my DNN Model by postman and got the following response.

{

"error": {

"code": "ValidationError",

"status": 400,

"message": "Request is invalid.",

"target": "/api/v2/deployments",

"requestId": "fe163031-50a5-4ada-520c-b91c80f91efa",

"details": [

{

"code": "MaxServersPerModelVersionLimitExceeded",

"field": "specs.models[0]",

"message": "You have exceeded the maximum number of model servers allowed to create for the same model version. There are '2' existing model servers for namespace '3d553c2e-95e0-4546-9702-8f8a0e9f0bdc', model name 'textclassifier1', and model version '11'."

}]}}

And now my question: How can I delete or remove my deployed models? The url for deploying the model is https://*-api.cfapps.eu10.hana.ondemand.com/api/v2/deployments

Thanks for your help.

Regards

Martin

Accepted Solutions (1)

Accepted Solutions (1)

simen_huuse3
Active Participant
0 Kudos

Hi Martin,

In Postman, you can change your method from Post to Delete, add /{deploymentID} and then trigger the deployment call. It should take care of it.

/Simen

martin_tempel
Discoverer
0 Kudos

Hi Simen,

thanks for your answer, - when I changed my post request to delete and added the "id" (which I got from the get request) at the body section (I set raw and JSON) and trigger the call I got the response below.

{

"error": {

"code": "HttpMethodNotSupported",

"status": 400,

"message": "The requested http method is not supported on the resource.",

"target": "/api/v2/deployments",

"requestId": "547cd221-288a-4f31-5cb6-4b5eeb104f49"

} }

martin_tempel
Discoverer
0 Kudos

Hi Simen,

I misunderstood your answer. - Sorry - I added the deploymentID behind the url and triggered the Delete call. - It works.

Thanks a lot, Martin

simen_huuse3
Active Participant
0 Kudos

Hi Martin! Glad it worked out 🙂 Please assign this as correct answer, so that this Q/A is updated with the correct status.

Kind regards,

Simen

Answers (0)