

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

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

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

1. JupyterLab 应用程序

1. 空间

1. 用户配置文件

1. 域

使用以下 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
```

------