Clean up

Deleting the container service also deletes its deployments and stored images.

  1. On the page of fcj-container, open the menu (⋮) next to the tabs and choose Delete.

Delete menu

  1. Choose Delete container service.

Delete container service

  1. Confirm with Yes, delete.

Confirm

  1. In CloudShell, remove the local image, the working folder and lightsailctl. The last command must return [].
aws lightsail delete-container-service --region ap-southeast-1 --service-name fcj-container
docker rmi -f fcj-nginx:v1
rm -rf ~/fcj-nginx ~/.local/bin/lightsailctl
aws lightsail get-container-services --region ap-southeast-1 \
  --query "containerServices[?containerServiceName=='fcj-container'].state"