cleaning of files mongodb