How do I delete IAM Policies on Wasabi?
    • 19 Dec 2023
    • 1 Minute to read
    • PDF

    How do I delete IAM Policies on Wasabi?

    • PDF

    Article summary

    You may sometimes encounter the below-mentioned error while deleting IAM Policies

    "The policy could not be deleted
    Detach the policy from any buckets or users utilizing it and try again"

    Screen_Shot_2021-05-08_at_9.02.51_PM.png

    Here are the steps to correctly delete IAM Policies

    1. Detach the IAM Policy from all entities

    Go to your IAM Policy and check to see if this policy is attached to any Users, Groups, or Roles. You would be able to see the attachment count and Policy Usage as shown in this example screenshot below

    Screen_Shot_2021-05-08_at_8.58.27_PM.pngNow, detach all Users, Groups, or Roles from your Policy until you see Attachment Count as '0'.

    Screen_Shot_2021-05-08_at_9.12.35_PM.png

    2. Delete all older versions of the same Policy

    Your Policy could also be having multiple versions and hence, we need to delete all older versions of that policy (see screenshot below) until you are left with the default version only.

    Screen_Shot_2021-05-08_at_9.14.26_PM.png

    3. Now you may successfully delete the policy