#!/bin/bash

cd decathlon_20250523_sticker_no_sticker/

# Exit if the directory isn't found.
if (($? > 0)); then
    echo "Can't find work dir... exiting"
    exit
fi

for i in *; do
    if ! grep -qxFe "$i" keep_images.txt; then
        echo "Deleting: $i"
        # the next line is commented out.  Test it.  Then uncomment to removed the files
        rm "$i"
    fi
done
