When you encounter an error stating that a resource doesn't exist in Azure Blob Storage after attempting to delete it, there are a few potential reasons for this issue:
- Soft Delete Feature: If the soft delete feature is enabled for your storage account, deleted blobs are retained for a specified retention period. During this time, they may still appear in listings, but they cannot be permanently deleted until the retention period expires.
- Caching Issues: Sometimes, the Azure portal or your application might cache the state of the resources. Refreshing the portal or clearing the cache might help in reflecting the current state of the resources.
- Propagation Delay: After a deletion operation, there might be a slight delay before the changes are fully propagated across the Azure infrastructure. This can lead to temporary inconsistencies in the resource state.
- Lease State: If the blob was leased at the time of deletion, the lease must be broken before the blob can be deleted. If the lease is still active, the blob may not be deleted successfully.
To resolve this issue, you can try the following steps:
- Check if soft delete is enabled and if the blob is still within the retention period.
- Refresh the Azure portal or your application to ensure you are viewing the most current state.
- Wait a few moments and check again to see if the deletion has been fully processed.
- If applicable, ensure that there are no active leases on the blob before attempting deletion again.