AWS Security ChangesHomeSearch

AWS code-library documentation change

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

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

Summary

Added PowerShell V5 example for deleting inline role policies

Security assessment

Shows proper role policy management without evidence of security issue being addressed

Diff

diff --git a/code-library/latest/ug/iam_example_iam_DeleteRolePolicy_section.md b/code-library/latest/ug/iam_example_iam_DeleteRolePolicy_section.md
index 96de93d3c..a21d8e042 100644
--- a//code-library/latest/ug/iam_example_iam_DeleteRolePolicy_section.md
+++ b//code-library/latest/ug/iam_example_iam_DeleteRolePolicy_section.md
@@ -123,0 +124,14 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example deletes the inline policy`S3AccessPolicy` that is embedded in the IAM role `S3BackupRole`.**
+    
+    
+    Remove-IAMRolePolicy -PolicyName S3AccessPolicy -RoleName S3BackupRole
+    
+
+  * For API details, see [DeleteRolePolicy](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+