locked
Delete Personal Site after user had been deleted from Active Directory RRS feed

  • Question

  • I am newbie in SharePoint Administration and a new duty was passed down to me after the SharePoint Administrator was let go. We have a SharePoint 2007 SP1. I was asked to do some house cleaning. When reviewing backups I noticing we were backing up personal site from users that they had left the company while back, six months and more time. I found these personal sites can be listed when I run the command line: stsadm -o enumsite -url http://<myportalsite>. In fact I found 30 sites belonging to non-active users. I would like to backup and then delete those personal sites. I cannot get to those site from anywere in my sharepoint server not even If I type the URL (http://<portalsite>/personal/username). This tells me the profiles had been deleted after those accounts were either deleted/disabled from Active directory when the schedule imports were/are performed (full/incremental) weekly and daily respectively. Can I use the command stsadm -o deletesite -url http://<portalsite>/personal/jdoe to delete those old personal site? I don't know if by doing command line deletion I would mess up anything in the permission structure within my team sites.

    Any input is much appreciated,


    Alex Alas


    • Edited by Alex_Alas Thursday, June 28, 2012 8:02 PM
    Thursday, June 28, 2012 7:13 PM

Answers

  • Xue-mei,

    Thanks a bunch for your answer. The article you pointed me to is very interesting and I think is what we need to implement in my SharePoint server, I'd discuss the  implemention/enabling of the "Site Use Confirmation and Deletion" feature with my boss, but I have other questions, if I enable this featue, I would have to wait up to x number of notifications  for these personal sites to be deleted and I really don't know if the users' information were set correctly in AD, considering some of these site had been sitting there for more than 6 months, so What if these notifications would not go to the correct manager, etc; besides in this moment we are only interested in deleting old my sites and not team site colletions, I undestood this automatic deletion feature also works on team sites. In case I want to expedite the deletion of ONLY old my sites, can I use the command line "stsadm -o deletesite -url http://<portalsite>/personal/jdoe" as I mentioned above. If possible what are the implications of doing it using command line?

    Thanks again for your input,


    Alex Alas


    • Edited by Alex_Alas Friday, June 29, 2012 2:47 PM
    • Marked as answer by Alex_Alas Tuesday, August 28, 2012 5:17 PM
    Friday, June 29, 2012 2:47 PM

All replies

  • Hi,

    In SharePoint under Central Administration there is a ‘My Site Cleanup Job’ which runs every hour. When a user is deleted or disable in Active Directory, the My Site Cleanup job starts a workflow on that user’s My Site. The default behaviour is to send an e-mail message to the manager with a link to the deleted user’s site.

    My Site will only be deleted if the Automatic Site Deletion is enabled. If you want to enforce the Automatic deletion of my sites you can use "Site Use Confirmation and Deletion” (Central Administration > Application Management > Site Use Confirmation and Deletion)

    This article may help you:http://salaudeen.blogspot.com/2012/05/user-profile-import-and-my-site.html

     

    Regards,

    Xue-Mei Chang

    TechNet Subscriber Support in forum

    If you have any feedback on our support, please contact tnmff@microsoft.com.


    Xue-mei Chang

    TechNet Community Support

    Friday, June 29, 2012 8:13 AM
    Moderator
  • Xue-mei,

    Thanks a bunch for your answer. The article you pointed me to is very interesting and I think is what we need to implement in my SharePoint server, I'd discuss the  implemention/enabling of the "Site Use Confirmation and Deletion" feature with my boss, but I have other questions, if I enable this featue, I would have to wait up to x number of notifications  for these personal sites to be deleted and I really don't know if the users' information were set correctly in AD, considering some of these site had been sitting there for more than 6 months, so What if these notifications would not go to the correct manager, etc; besides in this moment we are only interested in deleting old my sites and not team site colletions, I undestood this automatic deletion feature also works on team sites. In case I want to expedite the deletion of ONLY old my sites, can I use the command line "stsadm -o deletesite -url http://<portalsite>/personal/jdoe" as I mentioned above. If possible what are the implications of doing it using command line?

    Thanks again for your input,


    Alex Alas


    • Edited by Alex_Alas Friday, June 29, 2012 2:47 PM
    • Marked as answer by Alex_Alas Tuesday, August 28, 2012 5:17 PM
    Friday, June 29, 2012 2:47 PM