locked
How do I delete a directory? RRS feed

  • Question

  • I was playing around in Azure and created an Azure AD Directory...  Now I would like to clean up, but there is no option to delete the directory.  The directory has one user in it which was created by default.  There is no option to delete that user, either.

    How do I kill it?

    Thanks.

    - J


    http://digitalcamel.blogspot.com/

    Saturday, June 15, 2013 5:46 AM

Answers

All replies

  • I don't believe you can do that atm.

    Refer to the following links:

    http://stackoverflow.com/questions/16056715/how-to-programatically-delete-or-rename-an-azure-active-directory

    http://social.technet.microsoft.com/Forums/windowsazure/en-US/b0df8816-e07f-4d28-98aa-d110d2492c4a/remove-active-directory-from-azure

    I have also seen another blog that had a Microsoft Support representative say that the functionality wasn't available. I can't find the link now though, so I can only list it as my opinion.  From memory, it was related to delete potentially causing data loss, which I thought was funny because that's kind of the point.

    I expect it will be added at some point and I hope it's soon.

    Wednesday, June 19, 2013 6:40 AM
  • At present, you cannot kill this directory - the functionality is not exposed. You could try raising a support call and get Microsoft to kill the directory. Alternatively, just ignore it.


    Thomas Lee <DoctorDNS@Gmail.Com>

    Wednesday, June 19, 2013 11:10 PM
  • Does it cost me anything to leave it there?  Is there a charge per directory?

    http://digitalcamel.blogspot.com/

    Wednesday, June 19, 2013 11:19 PM
  • It is possible now.

    Cheers,
    Markus


    Markus Vilcinskas, Knowledge Engineer, Microsoft Corporation

    Wednesday, July 16, 2014 2:06 AM
  • Apparently if it's the only directory, you still can't delete it.  If I try to delete it I get a message telling me that the Directory has one or more Azure subscriptions.  I can't figure out how to disassociate it from a subscription.  I went to setting/subscriptions/edit directory...  It looks like I could change the directory association for the subscription, but I have no other directory to change it to.  So if I can't disassociate my one and only directory from my one and only subscription, I still can't delete it.

    I suppose I would have to create a new directory, first.  But I don't want or need any directories.

    As long as it's not costing me anything, I guess it's just an annoyance, but still would be nice to clean it up.


    • Edited by rlrcstr Thursday, July 17, 2014 6:01 PM
    Thursday, July 17, 2014 5:52 PM