删除未使用的资源 - Amazon SageMaker
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

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

删除未使用的资源

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

  1. JupyterLab 应用程序

  2. 空格

  3. 用户配置文件

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

Delete a JupyterLab application
aws --region Amazon Web Services 区域 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 Amazon Web Services 区域 sagemaker delete-space --domain-id example-domain-id --space-name example-space-name
Delete a user profile
aws --region Amazon Web Services 区域 sagemaker delete-user-profile --domain-id example-domain-id --user-profile example-user-profile