add a function to delete a dirty history