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

Delete a selected file

Hi all,

 

I know it sounds not very useful what I try to do, but I just simplified the problem so that it is easier to explain. Basically, I want to delete a file via a flow, which I selected first in a library. When I test the flow, it tells me that it can't find the file. It is definitely there! Result from Test:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Flow:

Untitled2.png

 

If I use the picker for the delete command, it works without issues. If I type in the text, exactly the same like displayed getting there with the picker, it doesn't work either...

 

Is there some setting in the background I need to change? Or is it because I try to delete the file which is also triggering the flow?

 

I don't really get it, I created a very long flow with get metadata, creating new filenames, coping files... everything works besides the final step of deleting the file...

 

Thanks,

-Kev

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Delete a selected file

 

Hi @KevRit ,

 

We need to configure Identifier in Delete file action.

You could use Get file properties action to get Identifier first.

Please refer to the following image to configure Flow:

169.PNG

Hope this helps.

 

Best Regards,

Community Support Team _ Barry
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

4 REPLIES 4
Highlighted
Super User III
Super User III

Re: Delete a selected file

Hi @KevRit 

 

You need to pass the file identifier Id for deletion. You can get the ID from the selected file action step.

 

image.png



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

Power Automate Video Tutorials
Highlighted
Community Support
Community Support

Re: Delete a selected file

 

Hi @KevRit ,

 

We need to configure Identifier in Delete file action.

You could use Get file properties action to get Identifier first.

Please refer to the following image to configure Flow:

169.PNG

Hope this helps.

 

Best Regards,

Community Support Team _ Barry
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

Highlighted
Super User III
Super User III

Re: Delete a selected file

Hi @KevRit 

 

I didn't realised that file identifier and Id from the selected files are two different things. Too many ID's 🙂 Please follow @v-bacao-msft  suggestion. That should work.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

Power Automate Video Tutorials
Highlighted
New Member

Re: Delete a selected file

Hi thanks for your help! I didn't try your recommendations, but it seems very reasonable, I thought the whole time that ID and Identifier are the same fields.

 

I found another solution. Instead of writing '/', I wrote %252f, because that field gets interpreted as url. That worked too.

 

Thanks,

-Kevin

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 (6,628)