There is a plugin called – Clean Options which promises to remove all unused entries from wp_options table. NOTE – that plugin hasn’t been updated for 2 years, you must do backup before using it.
To remove all data manually
You have to manually look into database for unused tables or rows and use the SQL query to delete those permanently from the database.
-
Most of the plugins create new tables with a custom prefix such as if you installed yoast seo plugin it will create tables with prefix
_yoast_wpseo_
that makes easy to identify All the tables created by that plugin and If you’re no longer using them you can drop them by using SQL command similar to that of given below.DELETE FROM wp_options WHERE option_name LIKE ‘_yoast_wpseo_%’;
Note
That SQL query will select all rows with prefix _yoast_wpseo_
(Note the ‘%’)
to delete from SQL table. Similar way you can delete tables created by other plugins too.
Related Posts:
- Delete tables from database when deleting plugin
- How can I delete orphan keys in WordPress database tables?
- How to delete all records from or empty a custom database table?
- Where should I use get_option in a plugin
- Using Vagrant for customizable WordPress Multi-sites [closed]
- Add custom meta box on Post page
- Remove obsolete plugins artifacts from database tables
- Default Plugin Settings Not Writing to Database
- Where does WordPress store plugin (enabled/disabled) status for multisite?
- How to remove traces from widget during uninstallation
- wp_editor content in plugin options page
- Redirect to another page using contact form 7? [closed]
- Gathering and logging data from a plugin: how to do it without race conditions?
- Updating options into the wp database performance
- Change the style of h1, h2, only in post entry
- Add some fileds to the wp_posts table
- Comment “like” problem – “users who like this” avatar linking to current user profile instead of “liker’s” profile
- Integrating Custom Database with WordPress
- How to add a custom form to a plugin’s setting page
- update_option creates an option, which empties on a blog reload
- Changing the CSS with a plugin
- save short-code in my custom plugin settings problem missed something
- Enable plugins that are “not supported”
- Echo custom admin field into a is_single()
- Manual Backup – How to save to Firefox or Chrome (instead of IE which brings up popup I can’t get rid of)
- database – multiple wordpress installations using same database – can they share plugin settings?
- Is saving multiple options or saving multiple items in one option better?
- Pull Data from DB for Admin Page Display as Relates to Admin Page Class by BA Internet
- Posts are deleted everyday at night
- How to find an option in the database?
- Best collection of code for your 'functions.php' file [closed]
- How do I show data from gravity forms in my template? [closed]
- How to make sense of the active_plugins option_value to enable and disable certain plugins from the database?
- Get a button for in the Editor
- Updating WordPress – the best approach (updating wp core, plugins and db)
- How to store ACF custom fields data in a custom table
- Bad Request (Invalid Hostname) on working server, database problem
- Plugin Not Working, But Only On GoDaddy Hosted site
- Image Crop/Resize Function/Code Sinppet/Plugin to adjust/crop images during upload
- WP get_permalink Return Wrong URL
- How to add product images using script?
- Setting up widgets in wordpress with a unique ID for the after_title argument
- Multiple Instances sharing the same database in a development environment
- How to add rewrite rules and pagination to retrieve attachments files?
- add action wp_head not working
- Update Option Error: Notice: Undefined index
- Retrieving a Value from a wp-database
- Need help restoring my WordPress blog
- WP plugins for building a database?
- Input with spaces in Shortcode attributes overwritten by defaults
- Image upload and other options in the same plugin settings form?
- Do widget options need to be escaped widget()?
- Is there any W3C compatible Share & Follow plugin?
- Delete query not working in plugin
- How do I network enable a plugin for a multisite install via the database?
- How can I change the meta_key for a particular piece of information?
- Enabling plugin failed because MySQL user do not have CREATE permissions
- Getting Theme element into plugins page editor in wp admin
- GeoMashup plugin: how to customize cluster markers / icons? [closed]
- Creating a CSV with PHP inside the plugin directory
- Basic gallery plugin suggestion [closed]
- Free paypal cart solution [closed]
- Which plugin can do horizontal scrolling of RSS feeds in WordPress [closed]
- How to create plugin/ page that reads from database
- I am trying to make a field show and save from quickedit screen
- Assign all Post in Wp to a specific Category
- How to save plugin custom settings page fields
- How to reinstate previously saved option?
- WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version [closed]
- Widget where it can make changes to the container
- Can’t create new CPTs when menu hidden
- Localise settings section headline
- Gathering all Custom Post Type posts in to array/object the proper way
- Multiple Post Thumbnails Plugin – Need help with code
- Custom Post Type, Custom Columns List
- How to prevent plugin, theme installation failures on WordPress?
- How to make a Product page without ordering and database
- wp_options not returning value for logged out users?
- How can I display selected content from a seperate database in an Activity style widget?
- $wpdb->delete not working for me
- Post source link plugin – small modification
- Can we hide a certain user in WP?
- Performing CRUD operations on front end in wordpress
- How to add specific script to WordPress webpage that will working with user input and databases
- How to use WordPress header function and footer function and not load word press database
- How to securely controlling data without keeping it in postmeta?
- Woocommerce list variations that are added already to cart in Single Product
- Flexslider empty slide
- errno: 150 “Foreign key constraint is incorrectly formed” [closed]
- why my wordpress dont have toolbar like, plugin, themes and other?
- Share on social media created listing after submission
- Translation plugin with default language?
- Custom pages with plugin
- Which One Is Better For Managing Add Ons For Extensible Plugin?
- Display Plugin information on specific url
- WordPress Code Access to Restricted Content without Registration
- How to pre-set WordPress settings for specific posts?
- Resources for building a custom event page template
- Form with response button after on table after submission
- Can’t save formdata in DB