AWS Security ChangesHomeSearch

AWS code-library documentation change

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

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

Summary

Added PowerShell V5 example for DeleteGroup operation with user removal steps

Security assessment

Shows proper group deletion procedure but doesn't indicate a security flaw being fixed

Diff

diff --git a/code-library/latest/ug/iam_example_iam_DeleteGroup_section.md b/code-library/latest/ug/iam_example_iam_DeleteGroup_section.md
index 734917344..89cd86ca1 100644
--- a//code-library/latest/ug/iam_example_iam_DeleteGroup_section.md
+++ b//code-library/latest/ug/iam_example_iam_DeleteGroup_section.md
@@ -88,0 +89,15 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example deletes the IAM group named`MyTestGroup`. The first command removes any IAM users that are members of the group, and the second command deletes the IAM group. Both commands work without any prompts for confirmation.**
+    
+    
+    (Get-IAMGroup -GroupName MyTestGroup).Users | Remove-IAMUserFromGroup -GroupName MyTestGroup -Force
+    Remove-IAMGroup -GroupName MyTestGroup -Force
+    
+
+  * For API details, see [DeleteGroup](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+