How to delete AWS Workspace with AWS CLI

When you are finished with a WorkSpace, you can delete it. You can also delete related resources. In this post, I’ll be using AWS CLI to delete a WorkSpace that is no longer needed. To delete a WorkSpace using AWS CLI, we can use terminate-workspaces command [2]. But first, I’d need to find the workspace id. ➜ aws workspaces describe-workspaces --query 'Workspaces[].WorkspaceId' --output text ws-9xm222222 Now that I got the WorkSpace id as ws-9xm222222, I can proceed to terminate this WorkSpace....

August 10, 2023 · 3 min · 538 words · kenno