[#TEXTIMG-3: Change query to delete old files]