Cleaning Project kobo-docker

is there a way to clean project. ex: delete all media files or selective delete from a range of date. ex delete media file from 2017

because i have form with multiple pictures that are important to have in short term but not important to keep for a long period and it will consume too much space on the server

could be good to have this option in the web console or
if it can be done via command line ist ok too … just explain me how i can perform this task