刪除未用的資源 - Amazon SageMaker

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

刪除未用的資源

為避免產生額外費用 JupyterLab,建議您依下列順序刪除未使用的資源:

  1. JupyterLab 應用

  2. 空格

  3. 使用者設定檔

  4. domains

使用下列 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