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 年前檢視次數 549 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南