Clean up resources
Note: If you’re using AWS-provided accounts, you can skip this section.
To avoid incurring unnecessary charges, follow the steps below to delete all the resources you created during this workshop.
Delete S3 Objects and Buckets
- Go to the S3 Console.
- Delete all objects in the following buckets:
awsdocsbucket
openapiBucket
dataanalysisbucket
- Follow this guide to delete objects.
- Once emptied, delete the buckets themselves.
Delete IAM Roles
- Open the IAM Console.
- In the navigation pane, choose Roles.
- Select the checkboxes next to these roles:
AmazonBedrockExecutionRoleForAgents_*
AmazonBedrockExecutionRoleForKnowledgeBase_*
AWSServiceRoleForAmazonOpenSearchServerless
- At the top of the page, click Delete.
Delete Knowledge Base
- Open the Knowledge Base Console.
- Select the Knowledge Base.
- Click Delete.
- Type
delete
to confirm.
Delete Agent
- Open the Agent Console.
- Select the Agent.
- Click Delete.
- Type
delete
to confirm.
Delete Vector Database (OpenSearch Collection)
- Open the OpenSearch Collections Console.
- Select the Collection.
- Click Delete.
- Type
confirm
to proceed.
- Open the CloudFormation Console.
- On the Stacks page, select the stack:
gen-ai-workshop-cfn
. - In the details pane, choose Delete.
- Confirm by selecting Delete stack when prompted.