Delete an Amazon Bedrock Studio workspace
Amazon Bedrock Studio is in preview release for Amazon Bedrock and is subject to change. |
To delete an Amazon Bedrock Studio workspace, you can use the following AWS CLI commands. You can't delete a workspace by using the Amazon Bedrock console.
To delete a workspace
Use the following command to list all the projects in the Amazon DataZone domain.
aws datazone list-projects --domain-identifier
domain-identifier
--regionregion
-
For every project, delete all the objects in the Amazon S3 bucket for that project. The bucket name format for a project is
br-studio-
. Don't delete the Amazon S3 bucket.account-id
-project-id
-
For each of the projects list all the environments.
aws datazone list-environments --domain-identifier
domain-identifier
--project-identifierproject-identifier
--regionregion
-
Delete the AWS CloudFormation stacks for each environment. The format of the stack-name is
DataZone-Env-
whereenvironment-identifier
environment-identifier
is the value you got in step 3 for each environment.aws cloudformation delete-stack --stack-name
stack-name
--regionregion
-
Delete the Amazon DataZone domain. This step will delete your Amazon DataZone domain, datazone project, and environments, but won't delete the underlying AWS resources in other services.
aws datazone delete-domain --identifier
domain-identifier
--skip-deletion-check --regionregion