删除未使用的资源 - Amazon SageMaker

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

删除未使用的资源

为避免产生额外的运行成本 JupyterLab,我们建议按以下顺序删除未使用的资源:

  1. JupyterLab 应用程序

  2. 空格

  3. 用户配置文件

使用以下 AWS Command Line Interface (AWS CLI) 命令删除域内的资源:

Delete a JupyterLab application
aws --region AWS 区域 sagemaker delete-app --domain-id example-domain-id --app-name default --app-type JupyterLab --space-name example-space-name
Delete a space
重要

如果您删除空间,则会删除与其关联的 Amazon EBS 卷。我们建议您在删除空间之前备份所有有价值的数据。

aws --region AWS 区域 sagemaker delete-space --domain-id example-domain-id --space-name example-space-name
Delete a user profile
aws --region AWS 区域 sagemaker delete-user-profile --domain-id example-domain-id --user-profile example-user-profile