How to delete resource groups in Azure

Ayush Kumar 0 Reputation points
2025-12-15T16:09:12.64+00:00

Hi,

I have to delete the resource group created for the Azure Foundry. I currently do not have access to delete it, which is causing hourly costs. Need assist on this, it has been two days like this and this cost is rising up.

Regards,

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SRILAKSHMI C 11,680 Reputation points Microsoft External Staff Moderator
    2025-12-19T15:10:06.0366667+00:00

    Hello Ayush Kumar,

    Welcome to Microsoft Q&A and Thank you for reaching out.

    I understand how frustrating it is to see hourly charges continue when you’re unable to delete a resource group. In Azure, deleting a resource group is restricted by permissions and configuration, so here’s how you can resolve this efficiently.

    1. Verify your permissions

    To delete a resource group, you must have one of the following roles:

    Owner

    Contributor

    Resource Group Contributor

    User Access Administrator (to assign roles)

    If you don’t have these permissions:

    Go to Azure Portal → Subscriptions → Access control (IAM)

    Check your assigned role

    If you’re missing the required role, contact the subscription Owner or administrator and ask them to either:

    • Delete the resource group for you, or
    • Grant you Contributor/Owner access so you can delete it yourself

    2. Check for resource locks

    Even with correct permissions, deletion can fail if a lock exists.

    Steps:

    Open the resource group in Azure Portal

    Go to Settings → Locks

    Remove any Delete or Read-only locks

    Locks must be removed before deletion is allowed.

    3. Identify and stop billable resources

    Azure charges are incurred by resources, not by the resource group itself.

    While access issues are being resolved:

    Ask the subscription Owner to stop or delete running resources inside the group (Azure AI Foundry hubs, OpenAI deployments, compute, storage, etc.)

    This will immediately stop further billing even if the resource group still exists

    4. Check for dependent resources

    Some resources may block deletion if they have dependencies (for example, disks attached to VMs).

    • Review all resources inside the group
    • Delete dependent resources first if required

    5. Delete using CLI or PowerShell

    If you have sufficient permissions, you can delete the resource group using:

    Azure CLI

    az group delete --name <ResourceGroupName>
    

    PowerShell

    Remove-AzResourceGroup -Name <ResourceGroupName>
    

    These commands will prompt for confirmation before deletion.

    Please refer this

    I Hope this helps. Do let me know if you have any further queries.


    If this answers your query, please do click Accept Answer and Yes for was this answer helpful.

    Thank you!

    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.