AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2025-06-28 · Documentation low

File: code-library/latest/ug/ec2_example_ec2_DeleteSecurityGroup_section.md

Summary

Added PowerShell V5 examples for DeleteSecurityGroup operation including EC2-VPC and EC2-Classic scenarios

Security assessment

While security groups are fundamental to network security, the change only demonstrates API usage patterns. The Force parameter documentation shows how to bypass prompts but doesn't indicate any new security controls or vulnerabilities addressed.

Diff

diff --git a/code-library/latest/ug/ec2_example_ec2_DeleteSecurityGroup_section.md b/code-library/latest/ug/ec2_example_ec2_DeleteSecurityGroup_section.md
index 20129da98..727dc0a9f 100644
--- a//code-library/latest/ug/ec2_example_ec2_DeleteSecurityGroup_section.md
+++ b//code-library/latest/ug/ec2_example_ec2_DeleteSecurityGroup_section.md
@@ -406,0 +407,28 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example deletes the specified security group for EC2-VPC. You are prompted for confirmation before the operation proceeds, unless you also specify the Force parameter.**
+    
+    
+    Remove-EC2SecurityGroup -GroupId sg-12345678
+    
+
+**Output:**
+    
+    
+    Confirm
+    Are you sure you want to perform this action?
+    Performing operation "Remove-EC2SecurityGroup (DeleteSecurityGroup)" on Target "sg-12345678".
+    [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"):
+
+**Example 2: This example deletes the specified security group for EC2-Classic.**
+    
+    
+    Remove-EC2SecurityGroup -GroupName my-security-group -Force
+    
+
+  * For API details, see [DeleteSecurityGroup](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+