Remove all files with a specific checksum

Find the checksum of the file:

md5sum ./testfile.md

Run this script

checksum=e59ff97941044f85df5297e1c302d260

directory=./images-201602131211
for FILE in `ls $directory`
do
    h=`md5sum $directory/$FILE | awk '{ print $1 }'`
#   echo Checking $h
    if [ "$checksum" = "$h" ]; then
     echo Removing $FILE
     #rm  $directory/$FILE
    fi
done