WordPress Loses Settings or Content After a Plugin Is Deleted
Deleting a plugin can remove its stored options or shortcodes. Know what stays and what goes.
Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
What happens
- Deactivating keeps the data. Deleting may run the plugin's uninstall routine, which can remove settings or tables.
- Shortcodes from the plugin then show up as plain text like
[gallery-slider]. - Blocks show a missing-block warning.
Prevent it
- Take a backup before deleting. See WordPress backups.
- Note which pages use the plugin, and replace them first.
- Check the plugin's settings for a keep data on uninstall option.
Recover
Restore the database table or options from a backup, or reinstall the same plugin and import its settings file. See Restore One File or One Database Table From a Backup Without Rolling Back Everything and How to Safely Remove Unused WordPress Plugins and Themes.
Related guides
- WordPress: Clone a Site to a Subdomain for Testing
- Rollback Plan: How To Undo a Change in 5 Minutes
- Restore One File or One Database Table From a Backup Without Rolling Back Everything
- phpMyAdmin Import Fails: File Too Large or Script Timed Out
Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.