Not able to deregister the directory from Workspaces

1

Not able to deregister the directory from Workspaces. There are no workspaces available. still not able to derigster the directory. Please help

C:\Users\hbansal>aws workspaces describe-workspaces Output: { "Workspaces": [] }

C:\Users\hbansal>aws workspaces deregister-workspace-directory --directory-id d-9f672e3fc7

Output: An error occurred (OperationNotSupportedException) when calling the DeregisterWorkspaceDirectory operation: There are WorkSpaces assigned to this directory. You must remove the WorkSpaces before you deregister the directory.

2개 답변
0

Hello,

To delete a directory follow the below steps,

Delete all WorkSpaces in the directory- https://docs.aws.amazon.com/workspaces/latest/adminguide/delete-workspaces.html

Find and remove all of the applications and services that are registered to the directory. For more information, see Delete Your Directory in the AWS Directory Service Administration Guide -- https://docs.aws.amazon.com/directoryservice/latest/admin-guide/ms_ad_delete.html

Open the WorkSpaces console at https://console.aws.amazon.com/workspaces/.

In the navigation pane, choose Directories.

Select the directory and choose Actions, Deregister.

When prompted for confirmation, choose Deregister.

Select the directory again and choose Actions, Delete.

When prompted for confirmation, choose Delete.

Let me know if this works & you can also reach out to AWS Support, if this does not work.

Please click Accept Answer if you found this helpful !!

profile pictureAWS
지원 엔지니어
답변함 2년 전
  • It's not working, I tried this. All of my workspaces are deleted, no workspaces, bundle, images are available, still while trying to deregister the directory, I'm getting error.

0

Correcting my answer as I overlooked the questions.

  1. Make sure the directory is in active state.
  2. Use AWS CLI to describe the Workspaces and check if there are any Workspaces still deployed in the directory.
  3. If you find any workspaces still deployed, terminate them using AWS CLI.
  4. Then deregister the directory.
  5. If the issue still persists, please open a support case.
AWS
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠