For testing, I registered Directory to Workspaces.
After completing the test, I deleted Workspaces and tried Directory deregister.
However, deregister failed with the following error message.
==
An Error Has Occurred.
If you continue to experience an issue contact the AWS Support Team on the community forums and via AWS Premium Support at: AWS Support Center.
When checking the corresponding DeregisterWorkspaceDirectory event in CloudTrail's event history, the following error message was confirmed.
==
"errorMessage": "There are WorkSpaces assigned to this directory. You must remove the WorkSpaces before you deregister the directory.",
Contrary to the error message, all WorkSpaces associated with the directory are in a state of being deleted.
Even if I commanded the describe-workspaces command through the AWS CLI, it is confirmed that there are no Workspaces in the current target region.
Is there anything else that can be checked in that situation?
If the issue you are experiencing is caused by a bug, is there a way to report the bug?