question

Andrei-4982 avatar image
0 Votes"
Andrei-4982 asked Andrei-4982 edited

Can't delete a trained model in Speech Services

When I try to delete the model I get the following error: (Delete not allowed. The model is used in an endpoint deployment.)

spx csr model delete --model https://westeurope.api.cognitive.microsoft.com/speechtotext/v3.0/models/94d94927-31df-4ca2-a943-cf6a58159904 @westeurope
SPX - Azure Speech CLI, Version 1.16.0
Copyright (c) 2020 Microsoft Corporation. All Rights Reserved.

csr.model.id="https://westeurope.api.cognitive.microsoft.com/speechtotext/v3.0/models/94d94927-31df-4ca2-a943-cf6a..." (+8 char(s))
service.config.key= 20c5****
service.config.region=westeurope
x.command=csr.model.delete

Deleting model https://westeurope.api.cognitive.microsoft.com/speechtotext/v3.0/models/94d94927-31df-4ca2-a943-cf6a58159904 ...

ERROR!! The remote server returned an error: (400) Bad Request.
{
"code": "InvalidRequest",
"message": "The model is used in an endpoint deployment.",
"innerError": {
"code": "DeleteNotAllowed",
"message": "The model is used in an endpoint deployment."
}
}


If I list the deployments/endpoints, there is none defined:

spx csr list --endpoints @westeurope
SPX - Azure Speech CLI, Version 1.16.0
Copyright (c) 2020 Microsoft Corporation. All Rights Reserved.

csr.list.kind=endpoints
service.config.key= 20c5****
service.config.region=westeurope
x.command=csr.list

Listing endpoints ...
Listing endpoints ... Done!

{
"values": []
}

azure-speech
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Andrei-4982 avatar image
0 Votes"
Andrei-4982 answered Andrei-4982 edited

I left my computer and after 1h/1h30m I tried again and the deletion was possible ...

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for the update! It was probably an intermittent issue, happy it's resolved now.

0 Votes 0 ·