I want to make sure that we're on the same page. Do you mean you wish to cancel your QuickBooks Online subscription? If yes, I'm sad to know about it but I'll guide you on how to do it.
Go to the Gear icon, and then select Account and Settings.
Choose Billing & Subscription tab then click Cancel in the QuickBooks section.
Select Continue to cancel.
Pick Submit and cancel subscription.
Hit Got it.
However, if you mean you want to cancel your QuickBooks Online payroll subscription, here are the steps that you can follow:
Go to the Gear icon, and then choose Account and Settings.
Select Billing & Subscription then
Click Cancel in the Payroll section.
Select Continue to cancel.
Complete the short survey and select confirm cancel.
Once canceled, your data will be available in a read-only access for one year from the date of cancellation.
Also, if you have plans in resubscribing, please feel free to read this article: