Delete a Policy Setting

In this guide, you will delete an existing policy setting from your Guardrails workspace. When you delete a policy setting, all affected controls revert to the next applicable value in the hierarchy, either an inherited setting from a parent resource or the policy type's default value. This is a permanent action, so make sure you understand the impact before proceeding.

Prerequisites

Step 1: Open the Policy Setting

Open the policy setting you want to remove. From the Policies page you can reach it through the policy type's settings list, or from a resource's or control's Policies tab. The setting opens on its detail page, showing its current value, precedence, and resource, with Edit and Delete buttons in the header.

Policy setting detail page showing the Versioning setting with Enforce: Enabled and a Delete button

Step 2: Delete the Setting

Click Delete. A confirmation dialog names the policy type and the resource so you can be sure you're removing the right setting.

Delete policy setting confirmation dialog naming the policy type and target resource

Review the details, then click Delete to confirm.

[!WARNING] Deleting a policy setting is permanent. All controls governed by this setting revert to the inherited value from a parent setting or the policy type's default. If this setting was enforcing compliance (for example Enforce: Enabled), affected resources are no longer remediated automatically until another setting covers them.

Step 3: Verify the Deletion

After you confirm, Guardrails removes the setting and it no longer appears in the policy type's settings list. To confirm that controls are reverting correctly:

  1. Open a resource that was covered by the deleted setting.
  2. Check its Policies tab to confirm the value now reflects the inherited or default setting.
  3. Review the Activity tab to see the control re-evaluation events.

Via Terraform

If you manage policy settings with Terraform, you have two options:

Option 1: Remove the resource block from your Terraform configuration and run terraform apply. Terraform detects the missing resource and deletes the setting.

Option 2: Targeted destroy to remove a specific setting without modifying your configuration files:

terraform destroy -target=turbot_policy_setting.s3_bucket_versioning

In both cases, Terraform handles the deletion through the Guardrails API.

Troubleshooting

IssueSolution
Delete not availableYou may lack Turbot/Admin permissions on the resource where the setting is applied. Check your permissions on the target resource.
Controls in an unexpected state after deletionControls revert to the next setting in the hierarchy. Check the Hierarchy tab on the setting to see which setting now applies. If no other setting exists, the policy type's default value takes effect.
Need to undo a deletionRecreate the setting with the same policy type, resource, and value. See Create a Policy Setting.
Further assistanceOpen a Support Ticket

Next Steps