cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (72,817)