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

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-

Highlighted
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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (3,118)