update and remove files