delete some file and update user interface