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.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,418)