AWS Security ChangesHomeSearch

AWS AWSEC2 documentation change

Service: AWSEC2 · 2025-04-16 · Documentation low

File: AWSEC2/latest/UserGuide/deleting-security-group.md

Summary

Reorganized deletion instructions with explicit AWS CLI/PowerShell examples and command syntax

Security assessment

Enhances operational documentation for security group management without security-specific changes or vulnerability fixes

Diff

diff --git a/AWSEC2/latest/UserGuide/deleting-security-group.md b/AWSEC2/latest/UserGuide/deleting-security-group.md
index 6c10016c9..19c7d1c36 100644
--- a//AWSEC2/latest/UserGuide/deleting-security-group.md
+++ b//AWSEC2/latest/UserGuide/deleting-security-group.md
@@ -18 +18,4 @@ When you are finished with a security group that you created for use with your A
-###### To delete a security group using the console
+Console
+    
+
+###### To delete a security group
@@ -43 +46,11 @@ When you are finished with a security group that you created for use with your A
-###### To delete a security group using the command line
+AWS CLI
+    
+
+###### To delete a security group
+
+Use the following [delete-security-group](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/delete-security-group.html) command.
+    
+    
+    aws ec2 delete-security-group --group-id sg-1234567890abcdef0
+
+PowerShell
@@ -45 +57,0 @@ When you are finished with a security group that you created for use with your A
-  * [delete-security-group](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/delete-security-group.html) (AWS CLI)
@@ -47 +59 @@ When you are finished with a security group that you created for use with your A
-  * [Remove-EC2SecurityGroup](https://docs.aws.amazon.com/powershell/latest/reference/items/Remove-EC2SecurityGroup.html) (AWS Tools for Windows PowerShell)
+###### To delete a security group
@@ -48,0 +61 @@ When you are finished with a security group that you created for use with your A
+Use the following [Remove-EC2SecurityGroup](https://docs.aws.amazon.com/powershell/latest/reference/items/Remove-EC2SecurityGroup.html) cmdlet.
@@ -50,0 +64 @@ When you are finished with a security group that you created for use with your A
+    Remove-EC2SecurityGroup -GroupId sg-1234567890abcdef0