Remove user profiles
All apps launched by a user profile and all spaces owned by the user profile must be deleted to delete the user profile. The following section shows how to remove user profiles from a domain using the SageMaker AI console or AWS CLI.
Remove user profiles from the console
-
Open the Amazon SageMaker AI console at https://console.aws.amazon.com/sagemaker/
. -
On the left navigation pane, choose Admin configurations.
-
Under Admin configurations, choose domains.
-
From the list of domains, select the domain that you want to remove a user profile from.
-
On the domain details page, choose the User profiles tab.
-
Select the user profile that you want to delete.
-
On the User Details page, for each non-failed app in the Apps list, choose Action.
-
From the dropdown list, choose Delete.
-
On the Delete app dialog box, choose Yes, delete app. Then enter delete in the confirmation field, and choose Delete.
-
When Status shows as Deleted for all apps, navigate back to the domain details page and choose the Space management tab.
-
Delete any spaces owned by the user profile. For each space where the user profile is the owner, select the space and choose Delete. For detailed steps, see Delete a Studio space.
-
Return to the User profiles tab and choose Edit.
-
On the Edit User page, choose Delete user.
-
On the Delete user pop-up, choose Yes, delete user.
-
Enter delete in the field to confirm deletion.
-
Choose Delete.
Remove user profiles from the AWS CLI
To delete a user profile from the AWS CLI, first delete any spaces owned by the user profile, then delete the user profile. Run the following commands from the terminal of your local machine.
# Delete spaces owned by the user profile aws sagemaker delete-space \ --region
region
\ --domain-iddomain-id
\ --space-namespace-name
# Delete the user profile aws sagemaker delete-user-profile \ --regionregion
\ --domain-iddomain-id
\ --user-profile-nameuser-name