All apps launched by a 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, 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, run the following command from the terminal of your local machine.
aws sagemaker delete-user-profile \ --region
region
\ --domain-iddomain-id
\ --user-profile-nameuser-name