Option 1: Delete via CloudFormation
If you used the CloudFormation template to set up the connection, this is the recommended approach.Open CloudFormation
Sign in to the AWS CloudFormation Console.
Select the correct region
Ensure you’re in the region where you created the ZapStack stack (typically
us-east-1).Deleting the CloudFormation stack automatically removes the IAM role and all associated resources.
Option 2: Delete IAM role directly
If you created the IAM role manually or prefer to delete it directly.Open IAM Console
Sign in to the AWS IAM Console.
Find the role
Search for the ZapStack role. It’s usually named
ZapStackRole or contains ZapStack in the name.What happens after deletion
Once the IAM role is deleted:- ZapStack immediately loses access to your AWS account
- Existing scan data remains in ZapStack until you delete your account
- Any active schedules (Schedule It) stop working
- The account shows as disconnected in your ZapStack dashboard
Remove the account from ZapStack
After deleting the IAM role, you can also remove the account from your ZapStack dashboard:- Go to Settings > AWS Accounts in ZapStack
- Find the disconnected account
- Click Remove to delete it from your workspace
Removing the account from ZapStack deletes all associated scan history and recommendations for that account.