Updated on 2025-01-17 GMT+08:00

Deleting One or More Network ACL Rules

Scenarios

You can delete network ACL rules if you no longer need them.

Deleting rules may affect how and where traffic is directed. Be careful with this operation as it may interrupt services.

To delete a network ACL rule, see Deleting a Network ACL Rule.

To delete multiple network ACL rules at a time:

Notes and Constraints

Default network ACL rules cannot be modified or deleted.

A maximum of 50 network ACL rules can be deleted at a time.

Deleting a Network ACL Rule

  1. Log in to the management console.
  1. Click in the upper left corner and select the desired region and project.
  2. Click in the upper left corner and choose Networking > Virtual Private Cloud.

    The Virtual Private Cloud page is displayed.

  3. In the navigation pane on the left, choose Access Control > Network ACLs.

    The network ACL list is displayed.

  4. In the network ACL list, locate the target network ACL and click its name.

    The network ACL summary page is displayed.

  5. Click the Inbound Rules or Outbound Rules tab as required.

    The network ACL rule list is displayed.

  6. In the network ACL rule list, locate the target rule and click Delete in the Operation column.

    A confirmation dialog box is displayed.

  7. Confirm the information and click OK.

Deleting Network ACL Rules in Batches (Manually Selecting Rules on the Console)

  1. Log in to the management console.
  1. Click in the upper left corner and select the desired region and project.
  2. Click in the upper left corner and choose Networking > Virtual Private Cloud.

    The Virtual Private Cloud page is displayed.

  3. In the navigation pane on the left, choose Access Control > Network ACLs.

    The network ACL list is displayed.

  4. In the network ACL list, locate the target network ACL and click its name.

    The network ACL summary page is displayed.

  5. Click the Inbound Rules or Outbound Rules tab as required.

    The network ACL rule list is displayed.

  6. In the network ACL rule list, select multiple rules and click Delete in the upper left corner above the list.

    A confirmation dialog box is displayed.

  7. Confirm the information and click OK.

Deleting Network ACL Rules in Batches (Using an Excel File)

  1. Log in to the management console.
  1. Click in the upper left corner and select the desired region and project.
  2. Click in the upper left corner and choose Networking > Virtual Private Cloud.

    The Virtual Private Cloud page is displayed.

  3. In the navigation pane on the left, choose Access Control > Network ACLs.

    The network ACL list is displayed.

  4. In the network ACL list, locate the target network ACL and click its name.

    The network ACL summary page is displayed.

  5. Click the Inbound Rules or Outbound Rules tab as required.

    The network ACL rule list is displayed.

  6. In the upper left corner above the network ACL rule list, click Batch Operations.

    The Batch Operations dialog box is displayed.

  7. Select either of the following methods:
    • Method 1: Click Download Template to download the Excel file to your local PC and fill in the network ACL rules to be enabled or disabled in the file.
    • Method 2: Export the existing rules to a local Excel file, filter the target rules and keep them as they are, and save the file.

    After the Excel file is ready, take step 9. The system then automatically selects the target rules based on the imported file.

  8. In the Batch Operations dialog box, click Select File.
    The system starts to match the rules in the Excel file against existing network ACL rules based on the type, action, protocol, source, source port range, destination, and destination port range.
    • If a rule in the Excel file matches an existing network ACL rule, Verified is displayed in the Result column. Only the matched rules can be enabled or disabled.
    • If a rule fails to be matched, the causes will be displayed in the Result column. The possible causes are as follows:
      • There is no such rule in this network ACL.
      • Inconsistent rule direction. For example, you perform the operation on outbound rules on the Inbound Rules tab, or the other way around.
      • Duplicate rules in the Excel file. The system automatically filters out the duplicate rules.
  9. Confirm the rules and click OK.

    The network ACL rule list page is displayed and the target rules are selected automatically.

  10. Click Delete above the network ACL rule list.

    A confirmation dialog box is displayed.

  11. Confirm the information and click OK.