Remove an installed app safely
Removing an app you no longer use frees storage and closes a possible way in for attackers. An app has two parts, its folder of files and its database, so remove both.
Before you start
- Make sure a recent restore point exists in Account → Hosting → your site → Backups. If you want a copy on your own computer, see Download a backup copy.
- Check that no other site or subdomain uses the same folder or database.
- Plan the domain. If visitors still arrive there, add a redirect. See Redirect a page or domain.
Remove an app from the Apps page
Apps installed from the app installer come off in one step, files and database together.
- Open Account → Hosting → your site → Websites. On the App installer card, click Browse apps.
- Under Installed apps, click the remove button next to the app.
- Read the confirmation and click Remove app. The latest daily backup keeps a copy for 30 days.
For WordPress, or an app you installed another way, remove the files and database yourself, as below.
Find the app's database
Most apps name their database in a settings file in the app's folder. For WordPress it's wp-config.php:
define( 'DB_NAME', 'yourusername_wp_ab12c' );
define( 'DB_USER', 'yourusername_wp_xy34z' );
Open the file in Account → Hosting → your site → Files → File manager and note both names.
Remove the files
- In Files → File manager, open the folder that holds the app.
- Select the app's files and folders. For an app at the top of a domain, that's everything in its folder, such as
public_html. - Click Delete. Deleted items go to the Trash first.
Remove the database
- Open Account → Hosting → your site → Databases.
- Under MySQL databases, click the delete button next to the app's database and confirm.
- Under Users and access, delete the app's database user if nothing else uses it.
Remove a SitePad site
Delete the pages in SitePad, then remove the published files from the folder in Files. See Build a site with SitePad.
Rather we did it? Open a support request with the domain and folder, and we'll remove the app for you. See Open a support request.
Check that nothing is left
- Files → File manager: the folder is empty or gone.
- Databases → MySQL databases: the old database and user are gone. See Create a MySQL database.
- Scheduled tasks still point at the old app? Remove them. See Schedule tasks with cron jobs.
- If you also drop the domain, remove it under Account → Hosting → your site → Websites → Domains.
If something goes wrong
- You removed the wrong thing: restore it from Backups. Every plan can restore from any day in the last 30 days. Open a support request quickly if you need our help.
- Site still appears: caching. Clear LiteSpeed Cache and your browser cache.
Still stuck? Ask us and we'll walk you through it.