diff --git a/scripts/remove_non5_images.sh b/scripts/remove_non5_images.sh
index d5bbd6f111ea979a4d0f443f6d9cff0e35221c8f..89c49655c145948ae670b387db9fea5415547e0f 100755
--- a/scripts/remove_non5_images.sh
+++ b/scripts/remove_non5_images.sh
@@ -21,4 +21,7 @@ echo "Removing non-5 minute images for camera ${camera} from years ${years}"
# See https://stackoverflow.com/a/35868472/433202
shopt -s extglob
camdirs="/data3/inst-data/aoss/cameras/${camera}/@(${years//,/|})"
-find $camdirs \( -path "*/??/??/??_?[12346789]_??.trig+00.jpg" -o -path "*/??/??/??_?[05]_[12345]?.trig+00.jpg" \) -delete
\ No newline at end of file
+find $camdirs \( -path "*/??/??/??_?[12346789]_??.trig+00.jpg" -o -path "*/??/??/??_?[05]_[12345]?.trig+00.jpg" \) -delete -type f
+# delete symbolic links from cache
+camdirs_cache="/data3/cache/aoss/cameras/${camera}/img/@(${years//,/|})"
+find -H $camdirs_cache \( -path "*/??/??/orig/??_?[12346789]_??.trig+00.jpg" -o -path "*/??/??/orig/??_?[05]_[12345]?.trig+00.jpg" \) -delete -type l