

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

# 在 Studio 中分離生命週期組態
<a name="code-editor-use-lifecycle-configurations-studio-detach"></a>

若要分離程式碼編輯器的生命週期組態，您可以使用主控台或 AWS CLI。如需從 Studio 主控台分離生命週期組態的步驟，請參閱[分離生命週期組態](jl-lcc-delete.md)。

若要使用 分離生命週期組態 AWS CLI，請從連接至資源的生命週期組態清單中移除所需的生命週期組態。然後將清單當作個別命令的一部分傳遞：
+ [update-user-profile](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sagemaker/update-user-profile.html)
+ [update-domain](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sagemaker/update-domain.html)

例如，以下命令會移除已連接至網域的程式碼編輯器應用程式的所有生命週期組態。

```
aws sagemaker update-domain --domain-id domain-id \
--default-user-settings '{
"CodeEditorAppSettings": {
  "LifecycleConfigArns":
    []
  }
}'
```