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 Automate - Building Flows
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

 

I have the same question (0)
  • lbendlin Profile Picture
    8,355 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,355 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 691 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 431 Moderator

#3
developerAJ Profile Picture

developerAJ 266

Last 30 days Overall leaderboard