I left my computer and after 1h/1h30m I tried again and the deletion was possible ...
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": []
}