answered 9 years ago
The constraints should be in the order you entered them. To remove the last just do
sage: p.remove_constraint(p.number_of_constraints() - 1)