A contract may be extinguished in like manner with any other obligation, and also in the manner prescribed by this Title.
(Enacted 1872.)