Delete excess files and update graph