delete previous files when updating