Go to the "Export" menu in the Book Tools menu for your book
Select the "Unbranded Ebook" submenu.
Click the blue "Create Export" button.
This will generate book files that do not include the Leanpub-related information, for example the paragraph that reads "This is a Leanpub book. Leanpub empowers authors..."