question

VREMESVlad-9724 avatar image
0 Votes"
VREMESVlad-9724 asked MayankBargali-MSFT edited

azure api management already exists

How do you delete API management if you have already deleted it?

I get error that the azure api management already exists when I try to deploy a new one, but I have already deleted it in the azure portal.

I cannot deleted it even with powershell.

azure-api-management
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

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered MayankBargali-MSFT edited

Hi @VREMESVlad-9724

Apologies for any inconvenience with this issue.

Recently product team has implemented the API Management soft delete feature. In this feature, you can recover and restore recently deleted API Management (APIM) instances. If your APIM instance is not recovered within 48 hours, it will be hard deleted (unrecoverable).

You can also choose to purge (permanently delete) your APIM instance, forgoing soft-delete retention period. Therefore once you have deleted the APIM service you need to purge soft delete APIM instance as this feature will help customers to recover their APIM service in accidental delete.

Please execute purge API to permanently delete your service so you can recreate it again with the same name. To pass the required parameter in execute purge API please execute the Deleted Service API detail API.

The API Management soft delete document has all the required information. Feel free to get back to me if you need any assistance.

Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

· 9
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.

it is unclear how to execute the purge, how can you purge the API?

2 Votes 2 ·

Please refer to API Management soft delete feature document: https://docs.microsoft.com/en-us/azure/api-management/soft-delete

0 Votes 0 ·

it is unclear how to execute the purge, how can you purge the API?

I get the following error
{
"error": {
"code": "AuthenticationFailed",
"message": "Authentication failed. The 'Authorization' header is missing."
}
}

how is this supposed to work? It cannot be done in powershell or any other way?

1 Vote 1 ·
Show more comments