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.

preguntada hace 2 años549 visualizaciones
2 Respuestas
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
INGENIERO DE SOPORTE
respondido hace 2 años
  • 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
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas