cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
freedumz
Level: Powered On

delete OneDrive files

Hi everyone

I'm trying to delete a one drive file

So this is a copy of my flow:

 

Untitled.png

 

So here, Each time, I got an error for my delete file step

So the idea, when I get a mail, it is saved on my drive, after that I get a notification on my phone for an approval, If I approve a get a confirmation message(this part works) and the other side if I reject the file, I want to remove it so any idea why it doesn't work?

 

 

1 REPLY 1
Community Support Team
Community Support Team

Re: delete OneDrive files

It is the file path that won't work.

For OneDrive connector to locate the proper file, you would need to 'Select ' the proper file, the connector will not take the dynamic content (combined with fiel path) as the availabe input.

 

You need to choose the File identifier generated from the create File action.

52.PNG

 

Adding the OneDrive for Business connector for reference:

https://docs.microsoft.com/en-us/connectors/onedriveforbusiness/

 

"

Delete file

This operation deletes a file.

Required Parameters

File
string
The unique identifier of the file.

"

Regards,

Michael

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

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

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
Top Kudoed Authors
Users online (9,131)