---
title: "Discussion on \"How to allow terraform to delete resource groups that are not empty\" | Hashnode"
description: "Discussion on \"How to allow terraform to delete resource groups that are not empty\". Sometimes terraform dependency tree is a lifesaver, but sometimes we know better, and we want to delete that RG no matter what.\nAdd this to the provider block and be happy.\nprovider \"azurerm\" {\n  features {\n    resource_group {\n       prevent_deletio..."
url: "https://hashnode.com/posts/how-to-allow-terraform-to-delete-resource-groups-that-are-not-empty/64889f694c9ac4a44588ca7f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to allow terraform to delete resource groups that are not empty](https://blog.danielabg.com/how-to-allow-terraform-to-delete-resource-groups-that-are-not-empty?utm_source=hashnode&utm_medium=feed)

Sometimes terraform dependency tree is a lifesaver, but sometimes we know better, and we want to delete that RG no matter what. Add this to the provider block and be happy. provider "azurerm" { features { resource\_group { prevent\_deletio...

Jun 13, 2023 · 1 min read · blog.danielabg.com  
Updated Jul 17, 2023  
Read the article

-   [#azure](https://hashnode.com/tag/azure)
-   [#terraform](https://hashnode.com/tag/terraform)
-   [#iac](https://hashnode.com/tag/iac)

## Written by

[Daniela Becerra](https://hashnode.com/@danibish)

@danibish

  
[View profile](https://hashnode.com/@danibish)

Devops Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
