cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SnowBlind11
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
v-bacao-msft
Community Support
Community Support

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
v-bacao-msft
Community Support
Community Support

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.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,728)