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
v-yamao-msft
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
edgonzales
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-

v-yamao-msft
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
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

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

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (39,631)