unable to delete user profile from sage maker


Hi , I am trying to delete sage maker domain , I have two users in that , when I am trying to delete users I am getting this error .

ResourceInUse Unable to delete UserProfile [arn:aws:sagemaker:us-east-1:89137692416eex:user-profile/d-4jle5huqch0f/test38] because Space(s) are associated with it.

I haven't see any spaces associated in the domain . I am unable understand what exactly happening

asked a month ago295 views
2 Answers
Accepted Answer

I met the same problem with you, it worked by the next steps

use aws cli and check spaces attached on the user, which may not be visible on console

aws sagemaker list-spaces

find the spaces in service attached on the user

aws sagemaker delete-space --domain-id DomainId --space-name SpaceName

and delete the user on console or aws cli

I guess that SPACE concept is born in the latest release version of sagemaker studio, but only the original SHARED SPACE is visible on the console .

hope it works to you.

answered a month ago


Can you try to follow this guidance from service documentation: https://docs.aws.amazon.com/sagemaker/latest/dg/gs-studio-delete-domain.html#gs-studio-delete-domain-studio ?

It is spot on with what you are trying to achieve.



profile pictureAWS
answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions