Go to the company record of the customer for whom you want to cancel the contract so they get removed from all the automations and to avoid that a renewal deal is created automatically at their contract end date.
Find the 'Most recent contract status' property in the left sidebar and select 'Canceled' in the dropdown:
This process is explained in this video at 6:23: