This service is in preview release and is subject to change.
Clean up AWS Greenlight for Agents
To remove AWS Greenlight for Agents and the resources that it created, complete the following steps.
-
To remove AWS Greenlight policies from your gateway or box, ask AWS Greenlight to remove them, for example
remove my policies from the gateway. This also removes thepbmc_policies that let your agent’s model calls through. If the engine still enforces afterward, AWS Greenlight warns you which calls will start being denied before it removes anything. (roll backundoes only the last change.) -
For a gateway, delete its dashboard. It’s in the gateway’s Region. To find its name, run the following AWS CLI command.
aws cloudwatch list-dashboards --dashboard-name-prefix PolicyBuilder- --region us-east-1 --profile your-profileThen delete the one named for your gateway. Leave any dashboard named
PolicyBuilder-stack-…, which belongs to a CloudFormation stack.aws cloudwatch delete-dashboards --dashboard-names PolicyBuilder-your-gateway-id --region us-east-1 --profile your-profile -
If you ran the network check, delete its Network Access Analyzer queries. In the console and the AWS CLI, they’re Network Access Scopes, tagged
PolicyBuilderTarget(your Runtime’s ID) andPolicyBuilderScope(ingressoregress). To find them, run the following command.aws ec2 describe-network-insights-access-scopes --filters Name=tag-key,Values=PolicyBuilderTarget --region us-east-1 --profile your-profileDelete each scope with
aws ec2 delete-network-insights-access-scope. If AWS says the scope still has analyses, delete them first withaws ec2 delete-network-insights-access-scope-analysis. -
Delete the test results.
aws s3 rm s3://your-bucket-name/greenlight/ --recursive --profile your-profileIf the bucket was only for AWS Greenlight, delete the bucket instead. The bucket that AWS Greenlight creates has versioning turned on, so empty it and delete it in the Amazon S3 console, or delete every object version before you delete the bucket.
-
Remove AWS Greenlight from each coding agent that has it.
In Kiro:
kiro-cli powers uninstall greenlight-for-agentsIn Claude Code:
claude plugin uninstall greenlight-for-agents@aws-greenlight claude plugin marketplace remove aws-greenlightIn Codex:
codex plugin remove greenlight-for-agents@aws-greenlight codex plugin marketplace remove aws-greenlight -
Delete AWS Greenlight’s Python environments. Do this before the next step, while the toolkit that finds uv is still there. It deletes nothing if it can’t find uv.
c="$(sh ~/aws-greenlight-for-agents/plugins/greenlight-for-agents/skills/agent-policies/scripts/tool uv cache dir)" && [ -n "$c" ] && rm -rf "$c/greenlight-for-agents" -
Delete AWS Greenlight’s files. This removes the toolkit, the Dogwood CLI in
~/policy-builder-deps, and the installer’s~/.local/bin/dogwoodlink.rm -rf ~/aws-greenlight-for-agents ~/policy-builder-deps ~/.local/bin/dogwoodIf you added the
PATHline that the installer printed, you can delete it from your shell’s startup file, such as~/.zshrc. An older installer added the line for you, under# added by Policy Builder install.sh. uv and the AWS CLI stay installed, and so does Rust if you installed it for the Dogwood CLI. -
The project’s
.greenlightfolder holds copies of your agent’s tool calls. Delete the folder, or check what’s in it before you share it or add it to source control.