Can't delete a trained model in Speech Services

Andrei 1 Reputation point
2021-05-13T15:31:13.21+00:00

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 AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
2,050 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Andrei 1 Reputation point
    2021-05-13T17:13:04.5+00:00

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


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.