


Thanks Shaw for putting me in the right direction!įrom your description, I understand that you could still find an account in Skype for Business environment though it has been removed from AD.īased on our experience, if you want to remove a Skype for Business account, it needs to disable the account in Skype for Business server first, and then removeĪs you have removed the user account in AD, you could refer to the following steps to remove a Skype for Business account.ġ.Go to Skype for Business Control Plane, and find the user in “User” page.Ģ.Select the user and choose the option “Remove from Skype for Business Server” in the “Action” menu.Īnother way, you could use Skype for Business Management Shell to run this command “ Disable-CsUser where AdObjectId like 'XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX' where AdObjectId like 'XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'ĭELETE FROM. I Finished remove some old records with these queries (replaced XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX by the AdObjectID which I wrote down earlier): DELETE FROM. I first wrote down the AdObjectId and deleted the record with this query: Delete FROM. Where UserId=xxxĪfter that I fired this query (again replaced xxx by the UserId): SELECT TOP (1000) įROM. I wrote down the UserId and fired these queries (replaced xxx by the UserId I wrote down): Delete FROM. I fired this query again: SELECT TOP įROM. Your comment "If no luck, it may need to manually find and delete the related attributes in SQL." did put me in the right direction.
