delete useless commitments.