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

Deleting Specific Files Upon Upload

Hello, I am new to Flow as I have switched from Google Docs. I am looking for a little help to delete a specific file type upon file upload. 

 

Right now I have a seperate flow that looks at the file types and sends an email with a link of the PDF file that has been uploaded. 


There is another file type that is uploaded when the program that is used closes out which ends in .logx

 

What I would like to achieve is that when the files are uploaded the flow will look to see if it is a logx file type, and if it is, I would like to have it deleted leaving only the PDF in the sharepoint. 

 

Here is what I have been trying off of other fourms I have read. 

 

 

Any suggestions would be appreciated. 

 

 

tempsnip.png

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Deleting Specific Files Upon Upload

Hi @SnowBlind11,

 

You could get the file name first by using Get file metadata action.

Then configure Condition to determine if the file name ends with "logx".

If yes, delete the file; if not, do nothing.

Image reference:

29.PNG

You could also directly determine if the File identifier ends with logx.

30.PNG

Please take a try.

 

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

1 REPLY 1
Highlighted
Community Support
Community Support

Re: Deleting Specific Files Upon Upload

Hi @SnowBlind11,

 

You could get the file name first by using Get file metadata action.

Then configure Condition to determine if the file name ends with "logx".

If yes, delete the file; if not, do nothing.

Image reference:

29.PNG

You could also directly determine if the File identifier ends with logx.

30.PNG

Please take a try.

 

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

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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!

Top Solution Authors
Top Kudoed Authors
Users online (7,669)