Unable to delete the postgres

Mahesh A 20 Reputation points
2026-07-13T05:44:49.4266667+00:00

User's image

Unable to delete the Postgres Instance, trying same from last 2 weeks. I have attached screenshot for ref. Please guide.

Azure Database for PostgreSQL
0 comments No comments

Answer accepted by question author
Alex Burlachenko 25,285 Reputation points MVP Volunteer Moderator
2026-07-13T09:53:07.26+00:00

Mahesh A hi & thx for sharing urs issue here at Q&A portal,

screenshot suggests the server isn't actually in a normal running or stopped state. It's stuck in an internal disabled state 'The server is currently in 'disabled' state. Please wait for the operation to complete.'

If it's been like this for two weeks, this is almost certainly a stuck control-plane operation rather than something you can resolve yourself. Coz the resource is still considered to be in the middle of an operation, Azure won't allow actions like Delete, Start, or Restart until that backend state is cleared. I'd look the Activity Log to see if there's a failed or long-running operation that never completed. If there is, note the correlation ID and timestamp. At this point, though, I don't think there's a customer-side fix. You'll need Microsoft Support to investigate the backend state and either complete or clear the stuck operation before the server can be deleted. When opening the support request, pls include the server name (plytrade-botmet), subscription ID, region, and mention that the server has remained in the disabled state for approximately two weeks and cannot be deleted. Im sure that will help the PostgreSQL Flexible Server team locate the stuck operation in the control plane.

rgds,

Alex

&

If my answer was helpful pls mark it and additional thx if u follow me at Q&A portal

and at my blog https://ctrlaltdel.blog/

 

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

2 additional answers

Sort by: Oldest
  1. Christos Panagiotidis 3,551 Reputation points
    2026-07-13T09:09:19.7766667+00:00

    Hi! First check whether the server or resource group has a ReadOnly or CanNotDelete resource lock. Also review the Activity Log immediately after another deletion attempt; it should reveal whether RBAC, a lock, or the server’s provisioning state is blocking it. Try deleting it with Azure CLI as well. If both the portal and CLI leave it stuck in a deleting or failed state, Azure Support will need to clear the backend operation.

    Was this answer helpful?

    0 comments No comments

  2. Srikanth Chavithina 265 Reputation points Microsoft External Staff Moderator
    2026-07-13T09:35:58.4566667+00:00

    Hi @Mahesh A

    Since the PostgreSQL Flexible Server has remained in the Disabled state for approximately two weeks, please check the Activity Log for the operation that occurred immediately before the server entered this state.

    In particular, review any failed or incomplete Start, Stop, Restart, Update, or Delete operations and share the operation name, status, error details, timestamp, and correlation ID.

    You can also check the current resource state using Azure CLI:

    az postgres flexible-server show --resource-group plytrade-botmet-dev --name plytrade-botmet

    Please share the output of the state and provisioningState fields, along with the error details from the failed deletion attempt. This information will help determine whether the resource is blocked by an incomplete management operation or another resource-state issue.

    I hope this clarifies your query.
    If you have any further questions or need additional assistance,please feel free to reach out.

    Was this answer helpful?

    0 comments No comments

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.