AWS Security ChangesHomeSearch

AWS code-library documentation change

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

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

Summary

Added PowerShell V5 example for DeleteServiceLinkedRole with usage note

Security assessment

Highlights proper service-linked role deletion process but doesn't indicate remediation of a security flaw

Diff

diff --git a/code-library/latest/ug/iam_example_iam_DeleteServiceLinkedRole_section.md b/code-library/latest/ug/iam_example_iam_DeleteServiceLinkedRole_section.md
index ecd70fbc4..ba6b3feba 100644
--- a//code-library/latest/ug/iam_example_iam_DeleteServiceLinkedRole_section.md
+++ b//code-library/latest/ug/iam_example_iam_DeleteServiceLinkedRole_section.md
@@ -136,0 +137,14 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example deleted the service linked role. Please note that if the service is still using this role, then this command results in a failure.**
+    
+    
+    Remove-IAMServiceLinkedRole -RoleName AWSServiceRoleForAutoScaling_RoleNameEndsWithThis
+    
+
+  * For API details, see [DeleteServiceLinkedRole](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+