In Settings → Data, click Delete All Data and type the confirmation phrase.
That permanently removes your books, sales imports, promotions, ARC and agent tracking, piracy reports, storage uploads, and email templates, then signs you out.
It does not cancel a subscription and it does not delete the login. Cancel billing first if you have a plan.