'Method to delete all the images that belong to
the original file.'

@staticmethod
def pr_image_delete_all(original_image_name):

    if current.deployment_settings.get_security_archive_not_delete():
        return
    db = current.db
    table = db.pr_image_library
    set = db((table.original_name == original_image_name))
    set.delete_uploaded_files()
    set.delete()
