SOLVED

Cannot delete folders with items in them - Bug or Feature?

%3CLINGO-SUB%20id%3D%22lingo-sub-66314%22%20slang%3D%22en-US%22%3ECannot%20delete%20folders%20with%20items%20in%20them%20-%20Bug%20or%20Feature%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-66314%22%20slang%3D%22en-US%22%3E%3CP%3EEver%20since%20messing%20around%20with%20the%20new%20retention%20policies%20we're%20having%20the%20following%20issue%20on%20all%20sharepoint%20sites%2Fdocument%20libraries%3A%20We%20cannot%20delete%20any%20folder%20that%20has%20items%20in%20them.%20The%20error%20is%3A%20%3CSTRONG%3EYou%20have%20to%20delete%20all%20the%20items%20in%20this%20folder%20before%20you%20delete%20the%20folder%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERetention%20Policies%20have%20already%20been%20deleted%20over%20a%20week%20ago%2C%20but%20they%20seemed%20to%20have%20sticked%20around%20until%20this%20week%20(visible%20by%20the%20lock%20icon%20in%20the%20sharepoint%20admin%20site%20under%20site%20collections).%20The%20lock%20is%20now%20gone%2C%20and%20I%20can%20finally%20delete%20sites%20again%2C%20but%20folder%20deletion%20issue%20persists.%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20already%20have%20created%20a%20case%20last%20week%2C%20but%20I%20have%20yet%20to%20receive%20a%20resolution.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20tell%20me%20this%20is%20a%20bug%2C%20not%20a%20feature.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-66314%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-66651%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20delete%20folders%20with%20items%20in%20them%20-%20Bug%20or%20Feature%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-66651%22%20slang%3D%22en-US%22%3E%3CP%3ESo%20Microsoft%20removed%20every%20hold%20of%20every%20Office%20365%20Groups%20SharePoint%20Site.%3C%2FP%3E%3CP%3EThe%20behaviour%20is%20still%20weird%20though%2C%20or%20is%20this%20(cannot%20delete%20folders%20with%20items)%20normal%20for%20SharePoint%20Sites%20under%20eDiscovery%20Hold%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-66322%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20delete%20folders%20with%20items%20in%20them%20-%20Bug%20or%20Feature%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-66322%22%20slang%3D%22en-US%22%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F10792%22%20target%3D%22_blank%22%3E%40Bradley%20Liebenberg%3C%2FA%3E%20wrote%3A%3CBR%20%2F%3E%3CP%3EHi%20Ivan%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20was%20someone%20with%20a%20similar%20porblem%20to%20yours%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fanswers.microsoft.com%2Fen-us%2Fmsoffice%2Fforum%2Fmsoffice_o365admin-mso_manage%2Ferror-message-you-have-to-delete-all-the-items-in%2F01fba4ef-8d8c-488b-8636-9a3ea5b999f1%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ELink%3C%2FA%3E%26nbsp%3B%2C%20this%20is%20txt%20taken%20from%20part%20of%20the%20solution%20in%20the%20link%3C%2FP%3E%3CP%3E%22%3CSTRONG%3Enote%3C%2FSTRONG%3E%3Ait%20needs%20some%20times%20to%20take%20effect%20after%20disabling%20the%20hold.%20the%20error%20message%20will%20disappear%20at%20that%20time.%3C%2FP%3E%3CP%3Ethe%20users%20in%20ediscovery%20group%20who%20have%20the%20proper%20permissions%20can%20view%20or%20edit%20the%20case%20in%20%3CA%20title%3D%22this%20page%22%20href%3D%22https%3A%2F%2Fprotection.office.com%2F%23%2Fediscovery%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ethis%20page%3C%2FA%3E.%20they%20can%20check%20which%20site%20is%20on%20hold%20with%20ediscovery%20case.%20here%20is%20%3CA%20title%3D%22an%20article%22%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-gb%2Farticle%2Fmanage-ediscovery-cases-in-the-office-365-security-compliance-center-edea80d6-20a7-40fb-b8c4-5e8c8395f6da%3Fui%3Den-us%26amp%3Brs%3Den-gb%26amp%3Bad%3Dgb%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ean%20article%3C%2FA%3E%20for%20your%20reference.%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3CP%3EBrad%3C%2FP%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3EHi%20Brad%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20seen%20this%20link%20and%20all%20its%20suggestions%2C%20unfortuantely%20I've%20been%20through%20all%20of%20them.%3C%2FP%3E%3CP%3EThere%20are%20no%20eDiscovery%20Cases%20open%20at%20all%20that%20affect%20any%20SharePoint%20Site.%20As%20mentioned%20I%20had%20one%20%22Retention%20Policy%22%20(the%20new%20ones)%20active%20that%20affected%20all%20SharePoint%20Sites%20by%20mistake.%20I've%20disabled%20that%20one%2C%20and%20after%20the%20disabling%20process%20has%20been%20applied%20I've%20deleted%20the%20whole%20retention%20policy.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20is%20nowhere%20to%20check%20anything%20else%20with%20the%20GUI.%20Is%20there%20anyway%20to%20find%20out%20via%20PowerShell%20what%20site%20is%20affected%20by%20which%20policy%26nbsp%3B(not%20the%20other%20way%20around%20-%20as%20there%20is%20no%20longer%20a%20policy)%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E*EDIT1*%3C%2FP%3E%3CP%3EAlso%2C%20is%20this%20normal%20behaviour%20(cannot%20delete%20folder%20with%20content%3F)%20for%20a%20document%20library%20with%20an%20active%20hold%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMicrosoft%20Support%20has%20confirmed%20that%20they've%20manually%20removed%20the%20eDiscovery%20Holds%20for%20my%20classic%20site%20collections%20-%20unfortunately%20they've%20missed%20all%20Office%20365%20Groups%20Site%20Collections%2C%20so%20I%20had%20to%20provide%20a%20list%20of%20all%20sites%20for%20them%20to%20check.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-66320%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20delete%20folders%20with%20items%20in%20them%20-%20Bug%20or%20Feature%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-66320%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Ivan%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20was%20someone%20with%20a%20similar%20porblem%20to%20yours%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fanswers.microsoft.com%2Fen-us%2Fmsoffice%2Fforum%2Fmsoffice_o365admin-mso_manage%2Ferror-message-you-have-to-delete-all-the-items-in%2F01fba4ef-8d8c-488b-8636-9a3ea5b999f1%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ELink%3C%2FA%3E%26nbsp%3B%2C%20this%20is%20txt%20taken%20from%20part%20of%20the%20solution%20in%20the%20link%3C%2FP%3E%3CP%3E%22%3CSTRONG%3Enote%3C%2FSTRONG%3E%3Ait%20needs%20some%20times%20to%20take%20effect%20after%20disabling%20the%20hold.%20the%20error%20message%20will%20disappear%20at%20that%20time.%3C%2FP%3E%3CP%3Ethe%20users%20in%20ediscovery%20group%20who%20have%20the%20proper%20permissions%20can%20view%20or%20edit%20the%20case%20in%20%3CA%20title%3D%22this%20page%22%20href%3D%22https%3A%2F%2Fprotection.office.com%2F%23%2Fediscovery%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ethis%20page%3C%2FA%3E.%20they%20can%20check%20which%20site%20is%20on%20hold%20with%20ediscovery%20case.%20here%20is%20%3CA%20title%3D%22an%20article%22%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-gb%2Farticle%2Fmanage-ediscovery-cases-in-the-office-365-security-compliance-center-edea80d6-20a7-40fb-b8c4-5e8c8395f6da%3Fui%3Den-us%26amp%3Brs%3Den-gb%26amp%3Bad%3Dgb%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ean%20article%3C%2FA%3E%20for%20your%20reference.%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3CP%3EBrad%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1700962%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20delete%20folders%20with%20items%20in%20them%20-%20Bug%20or%20Feature%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1700962%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20is%20a%20dumb%20side-effect%20that%20only%20makes%20it%20more%20difficult%20to%20administer%20the%20site.%3CBR%20%2F%3ERetention%20should%20mean%20that%20when%20files%20become%20deleted%2C%20that%20they%20are%20stored%20in%20the%20hold%20for%20X%20amount%20of%20years.%20I%20don't%20understand%20why%20Microsoft%20always%20incist%20on%20over-engineering%20things%20when%20they%20have%20proven%20time%20and%20time%20again%20they%20cannot%20develop%20even%20basic%20function%20correctly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1700963%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20delete%20folders%20with%20items%20in%20them%20-%20Bug%20or%20Feature%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1700963%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20a%20dumb%20side-effect%20that%20only%20makes%20it%20more%20difficult%20to%20administer%20the%20site.%3CBR%20%2F%3ERetention%20should%20mean%20that%20when%20files%20become%20deleted%2C%20that%20they%20are%20stored%20in%20the%20hold%20for%20X%20amount%20of%20years.%20I%20don't%20understand%20why%20Microsoft%20always%20incist%20on%20over-engineering%20things%20when%20they%20have%20proven%20time%20and%20time%20again%20they%20cannot%20develop%20even%20basic%20function%20correctly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Valued Contributor

Ever since messing around with the new retention policies we're having the following issue on all sharepoint sites/document libraries: We cannot delete any folder that has items in them. The error is: You have to delete all the items in this folder before you delete the folder

 

Retention Policies have already been deleted over a week ago, but they seemed to have sticked around until this week (visible by the lock icon in the sharepoint admin site under site collections). The lock is now gone, and I can finally delete sites again, but folder deletion issue persists. 

We already have created a case last week, but I have yet to receive a resolution.

 

Please tell me this is a bug, not a feature.

5 Replies
Highlighted

Hi Ivan,

 

There was someone with a similar porblem to yours Link , this is txt taken from part of the solution in the link

"note:it needs some times to take effect after disabling the hold. the error message will disappear at that time.

the users in ediscovery group who have the proper permissions can view or edit the case in this page. they can check which site is on hold with ediscovery case. here is an article for your reference."

 

Regards

Brad

Highlighted

@Bradley Liebenberg wrote:

Hi Ivan,

 

There was someone with a similar porblem to yours Link , this is txt taken from part of the solution in the link

"note:it needs some times to take effect after disabling the hold. the error message will disappear at that time.

the users in ediscovery group who have the proper permissions can view or edit the case in this page. they can check which site is on hold with ediscovery case. here is an article for your reference."

 

Regards

Brad


Hi Brad,

 

I've seen this link and all its suggestions, unfortuantely I've been through all of them.

There are no eDiscovery Cases open at all that affect any SharePoint Site. As mentioned I had one "Retention Policy" (the new ones) active that affected all SharePoint Sites by mistake. I've disabled that one, and after the disabling process has been applied I've deleted the whole retention policy.

 

There is nowhere to check anything else with the GUI. Is there anyway to find out via PowerShell what site is affected by which policy (not the other way around - as there is no longer a policy)?

 

*EDIT1*

Also, is this normal behaviour (cannot delete folder with content?) for a document library with an active hold? 

 

Microsoft Support has confirmed that they've manually removed the eDiscovery Holds for my classic site collections - unfortunately they've missed all Office 365 Groups Site Collections, so I had to provide a list of all sites for them to check.

 

 

Highlighted
Best Response confirmed by Ivan Unger (Valued Contributor)
Solution

So Microsoft removed every hold of every Office 365 Groups SharePoint Site.

The behaviour is still weird though, or is this (cannot delete folders with items) normal for SharePoint Sites under eDiscovery Hold?

Highlighted

This is a dumb side-effect that only makes it more difficult to administer the site.
Retention should mean that when files become deleted, that they are stored in the hold for X amount of years. I don't understand why Microsoft always incist on over-engineering things when they have proven time and time again they cannot develop even basic function correctly.

 

Highlighted

 

This is a dumb side-effect that only makes it more difficult to administer the site.
Retention should mean that when files become deleted, that they are stored in the hold for X amount of years. I don't understand why Microsoft always incist on over-engineering things when they have proven time and time again they cannot develop even basic function correctly.