cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
SnowBlind11
Level: Power Up

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

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

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

Better Together Contest Finalists Announced!

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

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

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 (4,882)