All Products
Search
Document Center

Elastic Compute Service:Delete a security group rule

Last Updated:Apr 03, 2024

You can delete security group rules that are no longer needed from a security group. This topic describes how to delete a security group rule in the Elastic Compute Service (ECS) console.

Important

Before you delete security group rules, make sure that you understand the impacts of this deletion operation to prevent unnecessary network security issues caused by accidental deletions of security group rules. If you want to use a deleted security group rule, create an identical rule. For information about how to add an inbound security group rule, see Add a security group rule.

Procedure

  1. Log on to the ECS console.

  2. In the left-side navigation pane, choose Network & Security > Security Groups.

  3. In the top navigation bar, select the region and resource group to which the resource belongs. 地域

  4. On the Security Groups page, find the security group from which you want to delete a security group rule and click Manage Rules in the Actions column.

  5. Select the direction of security group rules.

    • If the security group resides in a virtual private cloud (VPC), click the Inbound or Outbound tab.

    • If the security group resides in the classic network, click the Inbound, Outbound, Internet Ingress, or Internet Egress tab.

  6. Find the security group rule that you want to delete and click Delete in the Actions column.

  7. In the Delete Security Group Rule message, confirm that the rule information is correct and click OK.

References

You can call an API operation with the ID of a security group rule to delete the rule.