Worker thread deletes files that are not needed to be processed.