SOLVED

Cannot delete a soft deleted, UserPolicy Applied

%3CLINGO-SUB%20id%3D%22lingo-sub-2347121%22%20slang%3D%22en-US%22%3ECannot%20delete%20a%20soft%20deleted%2C%20UserPolicy%20Applied%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2347121%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20group%20of%20mailboxes%20that%20I%20need%20to%20hard%20delete.%20At%20this%20point%2C%20the%20user%20accounts%20are%20gone%20(hard%20deleted)%2C%20but%20when%20I%20run%20remove-mailbox%2C%3C%2FP%3E%3CP%3ERemove-Mailbox%20%3CMAILBOX%20id%3D%22%22%3E%20-PermanentlyDelete%20-Force%3C%2FMAILBOX%3E%3C%2FP%3E%3CP%3Ethe%20error%20lists%20several%20kinds%20of%20holds%20(reformatted)%3C%2FP%3E%3CP%3E%3CSTRONG%3ELitigationHoldEnabled%3C%2FSTRONG%3E%3A%20false%2C%3CBR%20%2F%3E%3CSTRONG%3EComplianceTagHoldApplied%3C%2FSTRONG%3E%3A%20false%2C%3CBR%20%2F%3E%3CSTRONG%3EDelayHoldApplied%3C%2FSTRONG%3E%3A%20false%2C%3CBR%20%2F%3E%3CSTRONG%3EDelayReleaseHoldApplied%3C%2FSTRONG%3E%3A%20false%2C%3CBR%20%2F%3E%3CSTRONG%3EOrganizationPolicies%20Applied%3C%2FSTRONG%3E%3A%20%2C%3CBR%20%2F%3E%3CSTRONG%3EUserPolicies%20Applied%3C%2FSTRONG%3E%3A%207833ebcf-a961-42b2-b38a-1498a7dd20ec%2C%3CBR%20%2F%3Ee79e7a87-aecc-49c4-837f-f7e9a47e9206%2C%3CBR%20%2F%3E80c5fbb5-7153-4984-bedb-e28073176bb3%2C%3CBR%20%2F%3Ec7afe8ba-1df4-4d86-9c00-3e8c8834789e%3CBR%20%2F%3E%3CSTRONG%3ErestrictivePolicies%20Applied%3C%2FSTRONG%3E%3A%20%2C%3CBR%20%2F%3E%3CSTRONG%3ECpsInfo%3C%2FSTRONG%3E%3A%20.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAm%20I%20correct%20in%20assuming%20that%20%3CSTRONG%3EUserPolicies%3C%2FSTRONG%3E%20is%20where%20the%20problem%20lies%20and%20if%20so%2C%20how%20do%20I%20clear%20that%20so%20I%20can%20make%20that%20mailbox%20go%20away%20forever.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2347121%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%20Administration%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2347612%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20delete%20a%20soft%20deleted%2C%20UserPolicy%20Applied%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2347612%22%20slang%3D%22en-US%22%3EYes%2C%20most%20likely.%20Refer%20to%20this%20article%20on%20how%20to%20locate%20the%20policy%20in%20question%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fcompliance%2Fdelete-items-in-the-recoverable-items-folder-of-mailboxes-on-hold%3Fview%3Do365-worldwide%23step-3-remove-all-holds-from-the-mailbox%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fcompliance%2Fdelete-items-in-the-recoverable-items-folder-of-mailboxes-on-hold%3Fview%3Do365-worldwide%23step-3-remove-all-holds-from-the-mailbox%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2353809%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20delete%20a%20soft%20deleted%2C%20UserPolicy%20Applied%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2353809%22%20slang%3D%22en-US%22%3EIf%20they%20are%20on%20any%20type%20of%20hold%2C%20including%20the%20eDiscovery%20one%2C%20you%20won't%20be%20able%20to%20delete%20them.%20You%20can%20however%20delete%20the%20corresponding%20user%20object%20to%20make%20the%20mailbox%20%22inactive%22%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fcompliance%2Fcreate-and-manage-inactive-mailboxes%3Fview%3Do365-worldwide%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fcompliance%2Fcreate-and-manage-inactive-mailboxes%3Fview%3Do365-worldwide%3C%2FA%3E%3CBR%20%2F%3EIf%20the%20user%20was%20already%20deleted%2Fmailbox%20is%20inactive%2C%20then%20you%20need%20to%20remove%20any%20and%20all%20holds%2C%20which%20will%20trigger%20the%20removal%20process%20as%20detailed%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fcompliance%2Fdelete-an-inactive-mailbox%3Fview%3Do365-worldwide%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fcompliance%2Fdelete-an-inactive-mailbox%3Fview%3Do365-worldwide%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2356256%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20delete%20a%20soft%20deleted%2C%20UserPolicy%20Applied%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2356256%22%20slang%3D%22en-US%22%3EThanks%2C%20I%20will%20look%20at%20those.%20Sorry%20to%20be%20repetitive%2C%20but%20if%20a%20mailbox%20has%202%20holds%20on%20it%20and%20you%20remove%201%20hold%2C%20the%20other%20is%20not%20affect%20and%20remains%20in%20force%3F%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2357164%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20delete%20a%20soft%20deleted%2C%20UserPolicy%20Applied%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2357164%22%20slang%3D%22en-US%22%3EYes%2C%20that's%20right.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2353651%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20delete%20a%20soft%20deleted%2C%20UserPolicy%20Applied%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2353651%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3BThank%20you%2C%20this%20helped%20me%20understand%20the%20problem%20a%20little%20better.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20Guid%20that%20is%20returned%20for%20the%204%20mailboxes%20I%20want%20to%20delete%20is%20for%20a%20Retention%20Policy%20that%20is%20scoped%20to%20several%20individual%20mailboxes.%20The%204%20mailboxes%20were%20part%20of%20it%20at%20one%20point%2C%20but%20are%20not%20anymore.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUnfortunately%2C%20there%20are%20still%20some%20other%20mailboxes%20that%20are%20legitimately%20part%20of%20the%20same%20Retention%20policy%2C%20so%20I%20it%20looks%20like%20I%20can't%20simply%20delete%20the%20policy.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20The%20mailboxes%20that%20need%20to%20be%20kept%20are%20also%20part%20of%20ediscovery%20holds.%26nbsp%3B%20If%20I%20understand%20correctly%2C%20if%20I%20did%20delete%20the%20retention%20policy%2C%20the%20Mailboxes%20that%20need%20to%20be%20kept%20would%20still%20be%20preserved%20because%20of%20the%20eDiscovery%20Hold.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWith%20the%20Retention%20hold%20removed%2C%20I%20can%20then%20delete%20the%20mailboxes%20that%20should%20be%20deleted.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20I%20understand%20correctly%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20(I%20hope%20this%20was%20clear)%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi,

 

I have a group of mailboxes that I need to hard delete. At this point, the user accounts are gone (hard deleted), but when I run remove-mailbox,

Remove-Mailbox <mailbox ID> -PermanentlyDelete -Force

the error lists several kinds of holds (reformatted)

LitigationHoldEnabled: false,
ComplianceTagHoldApplied: false,
DelayHoldApplied: false,
DelayReleaseHoldApplied: false,
OrganizationPolicies Applied: ,
UserPolicies Applied: 7833ebcf-a961-42b2-b38a-1498a7dd20ec,
e79e7a87-aecc-49c4-837f-f7e9a47e9206,
80c5fbb5-7153-4984-bedb-e28073176bb3,
c7afe8ba-1df4-4d86-9c00-3e8c8834789e
restrictivePolicies Applied: ,
CpsInfo: .

 

Am I correct in assuming that UserPolicies is where the problem lies and if so, how do I clear that so I can make that mailbox go away forever.

 

Thanks

5 Replies
Yes, most likely. Refer to this article on how to locate the policy in question: https://docs.microsoft.com/en-us/microsoft-365/compliance/delete-items-in-the-recoverable-items-fold...

@Vasil Michev Thank you, this helped me understand the problem a little better.

 

The Guid that is returned for the 4 mailboxes I want to delete is for a Retention Policy that is scoped to several individual mailboxes. The 4 mailboxes were part of it at one point, but are not anymore.

 

Unfortunately, there are still some other mailboxes that are legitimately part of the same Retention policy, so I it looks like I can't simply delete the policy.

 

However, The mailboxes that need to be kept are also part of ediscovery holds.  If I understand correctly, if I did delete the retention policy, the Mailboxes that need to be kept would still be preserved because of the eDiscovery Hold.

 

With the Retention hold removed, I can then delete the mailboxes that should be deleted. 

 

Do I understand correctly?

 

Thanks (I hope this was clear)

If they are on any type of hold, including the eDiscovery one, you won't be able to delete them. You can however delete the corresponding user object to make the mailbox "inactive": https://docs.microsoft.com/en-us/microsoft-365/compliance/create-and-manage-inactive-mailboxes?view=...
If the user was already deleted/mailbox is inactive, then you need to remove any and all holds, which will trigger the removal process as detailed here: https://docs.microsoft.com/en-us/microsoft-365/compliance/delete-an-inactive-mailbox?view=o365-world...
Thanks, I will look at those. Sorry to be repetitive, but if a mailbox has 2 holds on it and you remove 1 hold, the other is not affect and remains in force?

Thanks
best response confirmed by Steve_Moss (New Contributor)
Solution
Yes, that's right.