legal ground
Article 562 of the Civil Code
The parties may terminate the contract if they reach an agreement through consultation.
The parties may agree on the reasons for one party to terminate the contract. When the cause of termination of the contract arises, the creditor may terminate the contract.
Article 563
In any of the following circumstances, the parties may terminate the contract:
(a) the purpose of the contract cannot be achieved due to force majeure;
(two) before the expiration of the time limit for performance, one of the parties clearly stated or indicated by his own behavior that he would not perform the main debt;
(three) one party delays the performance of the main debt, and fails to perform it within a reasonable period after being urged;
(4) One of the parties delays the performance of debts or commits other breach of contract, which makes it impossible to achieve the purpose of the contract;
(5) Other circumstances stipulated by law.
For an indefinite contract whose content is to continue to perform debts, the parties may terminate the contract at any time, but they shall notify the other party before a reasonable time limit.