When you no longer need a rule, you can delete it. You can delete a rule in the Cloud
Config console. After you delete the rule, all of its configurations are deleted.
You can delete both the rules that you created and the managed rules in compliance
packages.
Prerequisites
The rule that you want to delete is disabled. For more information, see
Disable a rule.
Background information
To delete the managed rules in an enabled compliance package, you can directly disable
the compliance package. Alternatively, you can select the managed rules in the compliance
package and click the
icon. For information about how to disable a compliance package, see Delete a compliance package.
Use an ordinary account
If you use an ordinary account, you can delete only the rules within your account.
- Log on to the Cloud Config console.
- In the left-side navigation pane, click Rules.
- On the Rules page, set filter conditions to find the rules in the Inactive state.
- Delete one or more rules as required.
- Delete a single rule
- Find the rule that you want to delete, move the pointer over the
icon in the Actions column, and then select Delete.
- In the Are you sure you want to delete the rule? message, click Delete.
- Delete multiple rules at a time
- Select the rules that you want to delete and click the
icon.
- In the Delete Selected Rules message, click OK.
- Verify that the one or more rules are deleted.
After you delete a rule, it is no longer displayed on the Rules page.
Use a management account
If you use a management account, you can delete the rules within your account and
those within member accounts in the relevant resource directory.
- Log on to the Cloud Config console.
- In the left-side navigation pane, click Rules.
- On the Rules page, click the required account group tab.
- On the account group tab, set filter conditions to find the rules in the Inactive state.
- Delete one or more rules as required.
- Delete a single rule
- Find the rule that you want to delete, move the pointer over the
icon in the Actions column, and then select Delete.
- In the Are you sure you want to delete the rule? message, click Delete.
- Delete multiple rules at a time
- Select the rules that you want to delete and click the
icon.
- In the Delete Selected Rules message, click OK.
- Verify that the one or more rules are deleted.
After you delete a rule, it is no longer displayed on the account group tab.