3

I want to delete an aws directory but when I try, it gives me this error:

enter image description here

An Error Has Occurred

Cannot delete the directory because it still has authorized applications. Please deregister the directory before proceeding.

As it has said in the error message, I have to deregister it to be able to delete it. However, the directory is not even registered! and the 'Deregister' command is grayed out: enter image description here

I also went into the 'Applications' section (in the left pane) and found no application.

What's going on here?

Community
  • 1
  • 1
Kamran Bigdely
  • 7,946
  • 18
  • 66
  • 86

5 Answers5

4

This issue seems to be a shortcoming from Amazon. Amazon should have given me a proper error message. Anyway, I noticed that if I go to AWS Directory Service and try to delete the directory, it explains me the root of the issue:

enter image description here

So I went to AWS WorkDocs Service and deleted it:

enter image description here

Kamran Bigdely
  • 7,946
  • 18
  • 66
  • 86
  • Thanks for posting this answer. I could not delete the Active Directory on my end, either until I saw your answer. Thanks! – ariestav May 04 '22 at 02:19
0

It also can happen because there are other dependencies not listed by the error message above, such as SSO pointing out to that directory.

Ariel
  • 5,752
  • 5
  • 49
  • 59
0

I had the same issue. I checked WorkDocs and there were no sites that I could delete. I had to create a new site and then go through the steps of deleting and selecting delete the user directory.

BWolff
  • 1
0

You can delete an AWS directory by using following steps,

Step 1 -: Get into AWS directory service

Step 2 -: Go to application management

Step 3 -: Identify apps & services bound to ad, marked as enabled

Step 4 -: Go to individual service/app and delete those

Colm Doyle
  • 3,598
  • 1
  • 20
  • 22
0

These below steps worked for my issue.

  1. Go to Single sign-on (SSO)
  2. Dashbord - Setting - Management
  3. go to Delete AWS sso config - AwsDelete