SharePoint Online - Can't use "Move to" command (must delete files within folder before you delete)

%3CLINGO-SUB%20id%3D%22lingo-sub-1402691%22%20slang%3D%22en-US%22%3ESharePoint%20Online%20-%20Can't%20use%20%22Move%20to%22%20command%20(must%20delete%20files%20within%20folder%20before%20you%20delete)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1402691%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20There%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20been%20working%20with%20a%20group%20who%20has%20a%20lot%20of%20content.%20They%20are%20using%20Teams%20but%20storing%20their%20content%20in%202%20document%20libraries%3B%20the%20one%20attached%20to%20Teams%20the%20another%20called%20'Storage'.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20departments%20workflow%20is%20'active'%20files%20are%20stored%20in%20Teams%2C%20then%20when%20they%20are%20done%2C%20they%20move%20a%20file%2Ffolder%20to%20to%20the%20'Storage'%20library.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20problem%20is%20when%20users%20try%20to%20move%20a%20folder%20with%20documents%20inside%20they%20get%20an%20error%20similar%20to%20the%20screenshot%20attached%20but%20basically%20it%20says%20...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EYou%20have%20to%20delete%20all%20the%20items%20in%20the%20folder%20before%20you%20can%20delete%20the%20folder%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20after%20we%20do%20some%20digging%20we%20find%20out%20that%20there%20is%20a%20retention%20policy%20for%20Office%20365%20groups%20(7%20Years)%20that%20is%20stopping%20the%20move%20function.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20question%20is%20the%20%22move%20to%22%20functionality%20is%20needed%20by%20users%2C%20how%20can%20we%20get%20it%20working%3F%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-1402691%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-1402847%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Online%20-%20Can't%20use%20%22Move%20to%22%20command%20(must%20delete%20files%20within%20folder%20befor%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1402847%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F28866%22%20target%3D%22_blank%22%3E%40Mike%20Dumka%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20retention%20labels%20need%20to%20be%20removed%20on%20the%20folder%20before%20you%20can%20use%20the%20move%20function.%20The%20move%20function%20copies%20the%20content%20then%20deletes%20the%20old%20content%20placing%20it%20in%20the%20recycle%20bin.%20Due%20to%20the%20retention%20labels%20not%20allowing%20this%20you%20do%20need%20to%20remove%20the%20retention%20labels.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20are%20lucky%20this%20could%20simple%20be%20removing%20it%20at%20the%20folder%20level%20and%20it%20cascades%20to%20the%20folders%20and%20files%20below%2C%20if%20the%20labels%20have%20been%20manually%20applied%20at%20the%20file%20or%20sub%20folder%20level%20then%20you%20would%20need%20to%20write%20some%20sort%20of%20script%20to%20remove%20the%20labels%20before%20the%20move.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1402875%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Online%20-%20Can't%20use%20%22Move%20to%22%20command%20(must%20delete%20files%20within%20folder%20befor%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1402875%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F214649%22%20target%3D%22_blank%22%3E%40Andrew%20Hodges%3C%2FA%3E%26nbsp%3BSorry%20to%20sound%20silly%20...%20but%20were%20would%20I%20access%20the%20retention%20label%3F%20Like%20where%20would%20a%20normal%20user%20see%20it%20and%20remove%20it%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

Hi There, 

 

I have been working with a group who has a lot of content. They are using Teams but storing their content in 2 document libraries; the one attached to Teams the another called 'Storage'.

 

The departments workflow is 'active' files are stored in Teams, then when they are done, they move a file/folder to to the 'Storage' library. 

 

The problem is when users try to move a folder with documents inside they get an error similar to the screenshot attached but basically it says ...

 

You have to delete all the items in the folder before you can delete the folder

 

So after we do some digging we find out that there is a retention policy for Office 365 groups (7 Years) that is stopping the move function. 

 

My question is the "move to" functionality is needed by users, how can we get it working?

 

Thanks

2 Replies
Highlighted

@Mike Dumka 

 

The retention labels need to be removed on the folder before you can use the move function. The move function copies the content then deletes the old content placing it in the recycle bin. Due to the retention labels not allowing this you do need to remove the retention labels.

 

If you are lucky this could simple be removing it at the folder level and it cascades to the folders and files below, if the labels have been manually applied at the file or sub folder level then you would need to write some sort of script to remove the labels before the move. 

Highlighted

@Andrew Hodges Sorry to sound silly ... but were would I access the retention label? Like where would a normal user see it and remove it?