

# Delete unused resources
<a name="studio-updated-jl-admin-guide-clean-up"></a>

To avoid incurring additional costs running JupyterLab, we recommend deleting unused resources in the following order:

1. JupyterLab applications

1. Spaces

1. User profiles

1. domains

Use the following Amazon Command Line Interface (Amazon CLI) commands to delete resources within a domain:

------
#### [ Delete a JupyterLab application ]

```
aws --region Amazon Web Services Region sagemaker delete-app --domain-id example-domain-id --app-name default --app-type JupyterLab --space-name example-space-name
```

------
#### [ Delete a space ]

**Important**  
If you delete a space, you delete the Amazon EBS volume associated with it. We recommend backing up any valuable data before you delete your space.

```
aws --region Amazon Web Services Region sagemaker delete-space --domain-id example-domain-id  --space-name example-space-name
```

------
#### [ Delete a user profile ]

```
aws --region Amazon Web Services Region sagemaker delete-user-profile --domain-id example-domain-id --user-profile example-user-profile
```

------