- Newest
- Most votes
- Most comments
It appears you're encountering a common issue when trying to delete an AWS Directory Service directory that was previously associated with Amazon WorkSpaces. Even though you've checked and found no active WorkSpaces, the system still believes there are associated resources or authorized applications linked to the directory.
Here are some steps you can take to resolve this issue:
-
Double-check for any remaining WorkSpaces: Use the AWS CLI to confirm there are no WorkSpaces associated with the directory: aws workspaces describe-workspaces
-
Attempt to deregister the directory from WorkSpaces: Try using the AWS CLI to deregister the directory: aws workspaces deregister-workspace-directory --directory-id d-xxxxxxxxx
-
Check for other authorized applications: The error message suggests there might be other authorized applications still linked to the directory. Review any other AWS services that might be using this directory, such as Amazon Connect, Amazon Chime, or AWS IAM Identity Center.
-
Wait and retry: Sometimes, the process of removing application assignments can take longer than expected. After ensuring you've removed all assignments, wait for 30 to 60 minutes before attempting to delete the directory again.
-
Contact AWS Support: If none of the above steps resolve the issue, it's possible that there's a backend problem preventing the directory from being deleted. In this case, the best course of action is to open a support case with AWS. If you don't have a support contract, you can submit it as a Billing request.
Remember, when dealing with directory services, it's crucial to ensure all associated resources are properly deregistered or removed before attempting to delete the directory. If the issue persists, AWS Support should be able to assist you in resolving any backend issues that may be preventing the deletion.
Sources
How to delete a directory service that wont be deleted | AWS re:Post
Delete a directory for WorkSpaces Personal - Amazon WorkSpaces
Relevant content
- asked 2 years ago
- asked a year ago
- asked 3 years ago
- AWS OFFICIALUpdated 5 years ago
- AWS OFFICIALUpdated a year ago
