In order to disconnect from Xero, first, go to Setup under your company name.

Now select Setting under Interfaces

Now click Configure inside Xero - Accounting

Now click Disconnect from Xero button on your top left.

Finally, click Yes to the Warning prompt.

Now all your transactions will stop syncing to Xero.