Delete HEIC files that already have a JPG copy

Location: /opt/scripts/docker_scripts/delete_heic_jpg.sh and /opt/scripts/docker_scripts/delete_jpg_heic.sh (56 lines each)

Purpose

Two mirror-image clean-up scripts for use after converting photos. Each works in the current folder only:

Extensions are matched in any case.

How it runs

By hand, from inside the photo folder.

Usage

cd /path/to/photos
/opt/scripts/docker_scripts/delete_heic_jpg.sh dry-run   # show what would go
/opt/scripts/docker_scripts/delete_heic_jpg.sh           # delete

Dependencies

bash only.

What it touches

Deletes files in the current folder. The log goes to stderr.


Revision #1
Created 24 October 2026 13:29:32 by Admin
Updated 24 October 2026 13:29:32 by Admin