cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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

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 II
Super User II

@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

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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (48,252)