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 Switch 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.

  1. Log on to the Cloud Config console.
  2. In the left-side navigation pane, click Rules.
  3. On the Rules page, set filter conditions to find the rules in the Inactive state.
  4. Delete one or more rules as required.
    • Delete a single rule
      1. Find the rule that you want to delete, move the pointer over the More icon icon in the Actions column, and then select Delete.
      2. In the Are you sure you want to delete the rule? message, click Delete.
    • Delete multiple rules at a time
      1. Select the rules that you want to delete and click the Delete icon icon.
      2. In the Delete Selected Rules message, click OK.
  5. 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.

  1. Log on to the Cloud Config console.
  2. In the left-side navigation pane, click Rules.
  3. On the Rules page, click the required account group tab.
  4. On the account group tab, set filter conditions to find the rules in the Inactive state.
  5. Delete one or more rules as required.
    • Delete a single rule
      1. Find the rule that you want to delete, move the pointer over the More icon icon in the Actions column, and then select Delete.
      2. In the Are you sure you want to delete the rule? message, click Delete.
    • Delete multiple rules at a time
      1. Select the rules that you want to delete and click the Delete icon icon.
      2. In the Delete Selected Rules message, click OK.
  6. Verify that the one or more rules are deleted.
    After you delete a rule, it is no longer displayed on the account group tab.