web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / A Flow to delete .ARW ...
Power Automate
Unanswered

A Flow to delete .ARW files when no corresponding .JPG file exists

(0) ShareShare
ReportReport
Posted on by 4

I figure that this should be quite simple, and would be very useful to me.

 

Basically, my camera takes .JPG files and also stores much larger .ARW (raw) files.
As the jpg files are smaller, they are easier to work with, so I go through and delete the ones I definitely don't need.

 

What I then want to do though, is to create a flow that automatically deletes the corresponding .ARW files for the files I have deleted.

 

The problem is that my logic just thinks every file isn't in the list.

 

Can anyone please help? (I'm very new at all this! 🙂 )

 

flow1.jpg

 

Categories:
I have the same question (0)
  • lbendlin Profile Picture
    8,474 Super User 2025 Season 2 on at
    Re: A Flow to delete .ARW files when no corresponding .JPG file exists

    "Does not contain" refers to the items in an array, not to a string comparison.  Use

    CurrentItem.NameWithoutExtensionIgnoreCase + ".JPG"

  • BrAInZ Profile Picture
    4 on at
    Re: A Flow to delete .ARW files when no corresponding .JPG file exists

    Sorry to be a pain, but a complete learner that doesn't quite make sense to me.

    Would you please be kind enough to give me a little more context as to how I would use that?

    Thanks!

  • lbendlin Profile Picture
    8,474 Super User 2025 Season 2 on at
    Re: A Flow to delete .ARW files when no corresponding .JPG file exists

    Your step 4 compares a list of files with extension .JPG ("JPGFiles") to each name of the raw images but without the extension. That comparison will never match.  You need to replace the .ARW extension with .JPG before you try to match the string.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard