You can delete security group rules that you no longer require. To do so, follow these steps:

  1. Log on to the ECS console.
  2. In the left-side navigation pane, click Networks and Security > Security Groups.
  3. Select the target region.
  4. Find the security group where you want to delete rules and then, in the Actions column, click Add Rules.
  5. On the security group management page, select the rule direction and find the rule you want to delete.
    • If the security group is for classic network, the rule directions are Internet Inbound, Internet Outbound, Intranet Inbound, and Intranet Outbound.
    • If the security group is for VPC, the rule directions are Inbound and Outbound.
  6. In the Actions column, click Delete.
  7. On  Delete Security Group Rule dialog box, read and confirm the information displayed, and then click OK.