Delete unused resources - Amazon SageMaker
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Delete unused resources

To avoid incurring additional costs running JupyterLab, we recommend deleting unused resources in the following order:

  1. JupyterLab applications

  2. Spaces

  3. User profiles

  4. domains

Use the following Amazon Command Line Interface (Amazon CLI) commands to delete resources within a domain:

Delete a JupyterLab application
aws --region Amazon Web Services Region sagemaker delete-app --domain-id example-domain-id --app-name default --app-type JupyterLab --space-name example-space-name
Delete a space
Important

If you delete a space, you delete the Amazon EBS volume associated with it. We recommend backing up any valuable data before you delete your space.

aws --region Amazon Web Services Region sagemaker delete-space --domain-id example-domain-id --space-name example-space-name
Delete a user profile
aws --region Amazon Web Services Region sagemaker delete-user-profile --domain-id example-domain-id --user-profile example-user-profile