Remove Code Ocean
Learn to uninstall Code Ocean.
To uninstall Code Ocean, you need to first stop all running workers. Then, deleting the CloudFormation stack will completely uninstall Code Ocean.
Stop running workers
Stop running computations
Before you start to delete your Code Ocean application stack, you need to make sure there are no computations running, to ensure a smooth deletion.
Using AWS Session Manager, connect to Code Ocean services instance :
Run the following command to stop computations :
Wait until all computations complete by waiting until the following CloudWatch metric reaches 0: CloudWatch > Metrics > CodeOcean > AutoScalingGroupName > SlotsUtilization
Remove scale-in protection from Code Ocean worker EC2 instances
The stack deletion waits for existing running workers to terminate before continuing. If you verified that there are no running computations in the previous step, you can safely remove the scale in protection from the workers in the auto scaling group to complete the deletion quicker.
In the AWS EC2 console go to EC2 > Auto Scaling Groups > workers-[id]-asg > Instance Management
, then select all instances and click Actions > Remove scale-in protection
Delete the CloudFormation Stack
Go to the CloudFormation service and click on Stack. Select the stack name "codeocean".
After the stack is deleted, you can refresh the page to confirm.
Delete Code Ocean persistent data
By default, the Cloud Formation stack retains resources that hold the application's persistent data to preserve any data generated on the platform after it's been deleted. This includes:
AWS Backup Vault
S3 Buckets
You can empty and delete these resources after stack deletion is completed.
Last updated