Share via

HOW TO DELETE SQL MANAGED INSTANCE

suneel crathod 0 Reputation points
Aug 31, 2023, 9:46 AM

i cant able to delete the resource group of the SQL managed database in azure SQL

Azure SQL Database
{count} votes

2 answers

Sort by: Most helpful
  1. SChalakov 10,576 Reputation points MVP
    Aug 31, 2023, 9:52 AM

    Hi,

    from:

    Azure SQL Managed Instance frequently asked questions (FAQ)

    User's image

    Here you have the links to different methods..Example:

    az sql mi delete

    Please check it out. This should help.


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
    Regards
    Stoyan Chalakov

    0 comments No comments

  2. RahulRandive 10,321 Reputation points
    Aug 31, 2023, 12:46 PM

    Hi suneel crathod

    Please check if there are any locks on your resource group that are preventing the delete operation.

    When you say you can't delete the resource group, are you encountering any errors or exceptions?

    Please try deleting an instance using Rest API- You can click on Try It button.

    https://learn.microsoft.com/en-us/rest/api/sql/2022-08-01-preview/managed-instances/delete?tabs=HTTP

    Just to also add. As explained in the document the MI create or delete process takes a long time.

    90% of cluster deletions finish in 1.5 hours.

    Thank you!

    0 comments No comments

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.