Code Ocean VPC Administration Guide
v2.12
v2.12
  • Code Ocean VPC Administration Guide
  • Overview
    • System Overview
    • System Capacity and Sizing
  • Installation Guide
    • Prerequisites
    • CloudFormation Deployment
    • Deployment Parameters
    • Deployment IAM role
    • Subdomain Delegation
    • Create an Admin Account
    • Upgrade Code Ocean
    • Remove Code Ocean
  • Management Guide
    • User Management
      • Admin Signup
      • Adding/Removing an Administrator
      • Inviting New Users
      • Generating a Reset Password Link
      • Deactivate User
      • Custom Metadata
    • Set up a User Banner Message
    • Enable Git Integration
    • Starter Environments
      • Deploy Base Image
      • Image Actions
      • Deploying Private Docker Base Images
    • Authentication
    • SCIM Provisioning using Azure Active Directory
    • SCIM Provisioning using Okta
    • Configure Worker Parameters
    • ACM Certificate Renewal
    • Deleting Released Capsules
  • Troubleshooting Guide
    • Collecting Logs with the Support Bundle
    • Searching Logs in AWS CloudWatch
    • Alarms
Powered by GitBook
On this page
  • Stop running workers
  • Stop running computations
  • Remove scale-in protection from Code Ocean worker EC2 instances
  • Delete the CloudFormation Stack
  • Delete Code Ocean persistent data

Was this helpful?

  1. Installation Guide

Remove Code Ocean

Learn to uninstall Code Ocean.

PreviousUpgrade Code OceanNextManagement Guide

Last updated 2 years ago

Was this helpful?

To uninstall Code Ocean, you need to first . Then, 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 :

curl -v -X POST localhost:8300/cancel_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.

stop all running workers
deleting the CloudFormation stack