

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

# 刪除未使用的資源
<a name="studio-updated-jl-admin-guide-clean-up"></a>

為了避免產生執行 JupyterLab 的額外成本，建議您依照下列順序刪除未使用的資源：

1. JupyterLab 應用程式

1. 空格

1. 使用者設定檔

1. 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}}
```

------