Empty Recycle Bin automatically

%3CLINGO-SUB%20id%3D%22lingo-sub-121607%22%20slang%3D%22en-US%22%3EEmpty%20Recycle%20Bin%20automatically%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-121607%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20there%20a%20way%20to%20empty%20automatically%20the%20recycle%20bin%20of%20a%20certain%20user%20%3F%3C%2FP%3E%3CP%3Efor%20instance%20empty%20the%20bin%20every%2024%20hours%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eunfortunately%20i%20found%20only%20this%20%22request%22%20from%202015%20%3A(%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fonedrive.uservoice.com%2Fforums%2F262982-onedrive%2Fsuggestions%2F10197672-automatically-empty-the-recycle-bin-after-a-certai%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fonedrive.uservoice.com%2Fforums%2F262982-onedrive%2Fsuggestions%2F10197672-automatically-empty-the-recycle-bin-after-a-certai%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Evia%20policy%20%3F%20via%20API%20%3F%3C%2FP%3E%3CP%3E..please%20NOT%20via%20powershell%20cmdlet!%20%3A)%3C%2Fimg%3E%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-121607%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOneDrive%20for%20Business%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-121858%22%20slang%3D%22en-US%22%3ERe%3A%20Empty%20Recycle%20Bin%20automatically%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-121858%22%20slang%3D%22en-US%22%3EShort%20answer%2C%20as%20you%20might%20wornder%2C%20is%20No...so%20you%20can%20cook%20yourself%20the%20automatism%20to%20empty%20user's%20recycle%20bin%20using%20SPO%20APIs%20(CSOM%20%2F%20REST)%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-121723%22%20slang%3D%22en-US%22%3ERe%3A%20Empty%20Recycle%20Bin%20automatically%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-121723%22%20slang%3D%22en-US%22%3E%3CP%3Ethanks%20thomas%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ein%20my%20case%20this%20doesn't%20help%20at%20all.%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3Ei'm%20performing%20a%20user%20simulation%20against%20my%20cloud%20tenant.%3C%2FP%3E%3CP%3Eone%20of%20the%20simulation%20is%20for%20instance%26nbsp%3B%20targeting%20onedrive%20(uploading%20file%20-%20deleting%2C%20etc..)%3CBR%20%2F%3Ewhenever%20i'm%20done%20with%20the%20simulation%2C%20i%20would%20like%20to%20empty%20the%20bin%20automatically%20so%20that%20i%20don't%20end%20up%20with%20hundreds%20of%20of%20files%20in%20the%20trash.%20(the%2090days%20period%20is%20too%20long)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20was%20just%20thinking%20if%20there%20is%20a%20way%20via%20user%20policies%20(e.g%20empty%20trash%20after%2024h%20for%20this%20particular%20user%20account).....but%20even%20this%20does%20not%20exist%20for%20onedrive%20%3A((%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ei'm%20wondering%20why%20MS%20does%20not%20provide%20such%20simple%20function%20to%20their%20customer%20base%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20hope%20that%20i%20just%20simply%20miss%20something%20here%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-121628%22%20slang%3D%22en-US%22%3ERe%3A%20Empty%20Recycle%20Bin%20automatically%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-121628%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Stefan%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20are%20running%20Windows%2010%20maybe%20this%20could%20do%20the%20trick%20for%20you....%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.windowscentral.com%2Fhow-empty-recycle-bin-automatically-schedule-windows-10%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.windowscentral.com%2Fhow-empty-recycle-bin-automatically-schedule-windows-10%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Super Contributor

Is there a way to empty automatically the recycle bin of a certain user ?

for instance empty the bin every 24 hours ?

 

unfortunately i found only this "request" from 2015 :(

https://onedrive.uservoice.com/forums/262982-onedrive/suggestions/10197672-automatically-empty-the-r...

 

via policy ? via API ?

..please NOT via powershell cmdlet! :)

 

thanks

3 Replies
Highlighted

Hi Stefan,

 

If you are running Windows 10 maybe this could do the trick for you....?

 

https://www.windowscentral.com/how-empty-recycle-bin-automatically-schedule-windows-10

 

Highlighted

thanks thomas

 

in my case this doesn't help at all. :)

i'm performing a user simulation against my cloud tenant.

one of the simulation is for instance  targeting onedrive (uploading file - deleting, etc..)
whenever i'm done with the simulation, i would like to empty the bin automatically so that i don't end up with hundreds of of files in the trash. (the 90days period is too long)

 

i was just thinking if there is a way via user policies (e.g empty trash after 24h for this particular user account).....but even this does not exist for onedrive :((

 

i'm wondering why MS does not provide such simple function to their customer base

 

i hope that i just simply miss something here :)

Short answer, as you might wornder, is No...so you can cook yourself the automatism to empty user's recycle bin using SPO APIs (CSOM / REST)