Uninstall
If you want to remove BestPDF from your installation entirely, follow these steps in order. Skipping the first one will cause invoices to fail to render the moment BestPDF is gone — so don't skip it.
Uninstalling keeps BestPDF's database tables, so a later reinstall picks up where you left off. Removing them is a deliberate choice, made in step 2. If you do, export every design you want to keep first — see Managing your designs → Backing up your designs — and the settings too, under Settings → Advanced → Backup & Restore. There is no undo.
1. Switch invoice template away from BestPDF
In Blesta, go to Settings → Billing/Payment → Invoice Customization. In the Look and Feel section, set Invoice Template back to Blesta's default (or to whichever template you want to use instead) and click Update Settings.
If you skip this, invoices will fail to render the moment BestPDF is removed, because Blesta will still be trying to invoke a missing template.
2. Decide whether to keep your data
In the BestPDF interface, open Settings → Advanced. In the Danger Zone:
- Leave Remove all data when the plugin is uninstalled off to keep every design, translation and setting in the database for a later reinstall.
- Switch it on and click Save Changes to have uninstalling drop BestPDF's tables as well.
See Configuration → Danger Zone.
3. Uninstall the plugin in Blesta
Go to Settings → Plugins → Installed. Find the BestPDF row and click Uninstall.
With the switch from step 2 on, this drops BestPDF's database tables — all designs, translations, and configuration are removed. With it off, the tables stay where they are.
4. Remove the files
Delete these directories from the filesystem:
/plugins/bestpdf
/components/invoice_templates/best_invoice
5. (Optional) Clean up the asset directory
The BestPDF data storage directory (whatever path you configured under Configuration → Data Storage) holds uploaded images, fonts, and PDFs. These files are not removed automatically.
If you don't plan to reinstall, delete that directory too for a clean state. If you might reinstall later and want to keep your uploaded assets, leave it in place — they'll still be available if you point a fresh BestPDF install at the same path.
Reinstalling later
If you kept your data, re-installing is all it takes: BestPDF comes back with your designs, translations and settings, license key included.
If you removed it, you start with just the bundled designs. To restore your previous ones:
- Re-install BestPDF (see Installation).
- Use the Import button on the Designs page to upload each
.bestpdf.zipbackup. See Managing your designs → Importing a design.
A settings file exported under Settings → Advanced restores the settings and translation overrides. If you also kept the data storage directory in step 5 above and point the new install at the same path, your uploaded raw assets will still be on disk — though they won't be wired up to any design until you import or recreate the designs that reference them.