The discharge of debt occurs when the creditor voluntarily releases the debtor from the contractual obligation. It can be either total or partial, depending on the agreement between the parties. This alternative way of discharging from an obligation requires the creditor's consent to release the debtor from their obligation. It is important to note that seeking the advice of a lawyer specialized in civil law can provide guidance in the process of discharging from contractual obligations.