Removing unnecessary undo files