Share via

Azure APIM v2 stuck in DeleteFailed state

D C 0 Reputation points
2026-02-16T11:16:41.4433333+00:00

Hi,

I have an APIM v2 Instance that has been in a DeleteFailed state since Feb 12th.

I am unable to edit, nor delete this resource.

User's image

Any suggestions on what to do next? I can see other questions were raised on this same issue, but each resolution seemed to be that engineering helped with deleting on Microsoft Azures side.

Name: sf1-uat-dyltest-apim-kxi6

Region: UK South

Azure API Management
Azure API Management

An Azure service that provides a hybrid, multi-cloud management platform for APIs.

{count} votes

1 answer

Sort by: Most helpful
  1. Pravallika KV 11,110 Reputation points Microsoft External Staff Moderator
    2026-02-16T11:55:29.8033333+00:00

    Hi @D C,

    Thanks for the confirmation. Glad you were able resolve the issue.

    Solution:

    When the entire Resource Group is deleted, Azure performs a recursive force delete across all resources inside it. Resource group deletion behaves differently than single-resource deletion.

    Please check if below steps helps to resolve the issue:

    Verify Resource Status:

    • Check the current status of your APIM instance in the Azure portal. Make sure it truly reflects the DeleteFailed status.

    Check Activity Logs:

    • Go to the Monitor blade in the Azure portal.
    • Navigate to Activity Log and filter for failed operations. Look for any specific errors that might give you insight into why the deletion failed.

    Investigate Dependencies:

    • Sometimes resources can't be deleted due to dependencies. Ensure there are no ongoing operations on the APIM instance or any associated services that might be preventing the deletion.
    1. Try Command-Line Tools:
      • If the Azure portal isn’t letting you delete it, you can use Azure CLI or PowerShell for a more manual approach. Here are the commands:
      • Azure CLI:
         az apim delete --name sf1-uat-dyltest-apim-kxi6 --resource-group <your-resource-group> --yes
      
      • Azure PowerShell:
         Remove-AzApiManagement -ResourceGroupName <your-resource-group> -Name sf1-uat-dyltest-apim-kxi6 -Force
      

    Hope this helps!


    If the resolution was helpful, kindly take a moment to click on User's imageand click on Yes for was this answer helpful. And, if you have any further query do let us know


Your answer

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