cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Blakendeker
New Member

Deleting folders in OneDrive

Hi,

 

I wish to daily wipe clean the content of a onedrive account. I'm able to produce a flow that will delete all the root files but I'm unable to do the same with the folders. Is there a way to recursivly delete a folder and all it's content (files and subfolders) with a flow?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: Deleting folders in OneDrive

Hi @Blakendeker ,

 

Thanks for feedback.

 

If you want to delete folder in OneDrive, I am afraid that it is not possible currently. Flow doesn’t have an delete folder action, besides, we cannot use “Delete file” action to delete folders.

 

Please feel free submit a request on Flow Ideas Forum, I will suggest other customers who have the same request to vote your idea as well:

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Super User
Super User

Re: Deleting folders in OneDrive

@Blakendeker 

So, here's a theory...let me know what you think:

  1. Map the OneDrive to a network drive
  2. Write a batch file to clear the drive.
  3. Call the batch file from a recurrence Flow.

Dangerous...but fun, right?

Keep us posted.

-Ed-

Community Support
Community Support

Re: Deleting folders in OneDrive

Hi @Blakendeker ,

 

Thanks for feedback.

 

If you want to delete folder in OneDrive, I am afraid that it is not possible currently. Flow doesn’t have an delete folder action, besides, we cannot use “Delete file” action to delete folders.

 

Please feel free submit a request on Flow Ideas Forum, I will suggest other customers who have the same request to vote your idea as well:

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (6,059)