made a function which removes a list of files after a while