iam:DeleteServiceLinkedRole

Write

iam:DeleteServiceLinkedRole is a Write access-level action in the iam service. Grants permission to delete an IAM role that is linked to a specific AWS service, if the service is no longer using it

Resource types

ARNs that iam:DeleteServiceLinkedRole can be scoped to in an IAM policy.

arn:${Partition}:iam::${Account}:role/${RoleNameWithPath}
role

Condition keys

Keys you can use in the Condition block of a policy that grants iam:DeleteServiceLinkedRole.

iam:ResourceTag/${TagKey} String

Filters access by the tags attached to an IAM entity (user or role)

aws:ResourceTag/${TagKey} String

Filters access based on the tags associated with the resource

Example IAM policy

A minimal policy that allows iam:DeleteServiceLinkedRole. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowIamDeleteServiceLinkedRole",
      "Effect": "Allow",
      "Action": "iam:DeleteServiceLinkedRole",
      "Resource": "*"
    }
  ]
}

Related actions in iam

View all iam actions →