• Home
  • About 404TS
  • Contact

404 Tech Support

Where IT Help is Found

  • Articles
    • Code
    • Entertainment
    • Going Green
    • Hardware, Gadgets, and Products
    • Management
    • Network
    • News
    • Operating Systems
    • Security and Privacy
    • Software
    • System Administration
    • Talking Points
    • Tech Solutions
    • Web
    • Webmaster
  • Reviews
  • Media
    • Infographics
    • Videos
  • Tech Events
  • Tools
    • How do I find my IP address?
    • Browser and plugin tests
  • Get a Technical Consultation
You are here: Home / Articles / Webmaster / Easily delete ‘cached’ Custom Field entries from WordPress

Easily delete ‘cached’ Custom Field entries from WordPress

2012-04-24 by Jason

The default WordPress ‘Posts’ post type has a section called Custom Fields that greatly increases the extensibility of WordPress. Many plugins and themes make use of the custom fields to hold extra metadata about a post or display special information. If you have installed and deleted plugins before or even mistyped the name of a custom field before, those entries can keep coming back for future entries. It might just be an annoyance or it could be a source of confusion. Here’s how to bulk delete custom fields that you no longer want taking up space in your site’s database.

The custom field list is generated by looking at custom fields used in previous posts. If you want to delete a name, you will need to delete the value from any posts that have it entered. For one or two, that can be easy if you catch it right away but for those generated by a plugin or in many posts, it can be time consuming to go through each post. You could alternatively use phpMyAdmin to go through the wp_postmeta table to search for the fields of the custom fields you wish to delete.

An easier way comes by means of a plugin. Using the Delete Custom Fields plugin (install and activate it on your WordPress site), you can find it under Tools -> Delete Custom Fields. It will show you all the custom fields in your database, optionally including hidden field names (they start with an underscore ‘_’ ). You can then just select the custom field you want to get rid of from the drop-down and hit ‘Delete Permanently’ button.

The action will take you to a report where you can watch it progress through your previous posts, deleting the custom fields you selected.

Very easily, you can clean up any old custom fields you no longer need. Be careful! Make sure you don’t delete any field names that are currently being used by your plugins or themes. There’s no way to recover the data with this tool once they’re deleted.

It would be nice if this plugin could just generate a list of posts with a specific custom field name without starting the delete process. It would help trying to figure out those custom fields that have generic names that you can’t remember what plugin created them. For now, I guess that task will be left to diving into the database with phpMyAdmin.

Filed Under: Webmaster

Trending

  • Being safe with coin batteries
    In Infographics
  • Zynga, the Makers of Farmville, Want You To Avoid Phishing
    In Media, Security and Privacy
  • Cyanide & Happiness explains insecure security questions
    In Media, Security and Privacy

Latest Media Posts

Find Out Where To Download SNES ROMs

Find Out Where To Download SNES ROMs

Multifunctional Video Conversion Tools – Wondershare Video Converter

Multifunctional Video Conversion Tools – Wondershare Video Converter

  • Popular
  • Latest
  • Today Week Month All
  • Access to the resource [servershare] has been disallowed Access to the resource [servershare] has been disallowed
  • Read the Event Logs on Windows Server Core Read the Event Logs on Windows Server Core
  • Increase IIS Private Memory Limit to improve WSUS availability Increase IIS Private Memory Limit to improve WSUS availability
  • How to ‘Unblock’ multiple files at a time with PowerShell How to 'Unblock' multiple files at a time with PowerShell
  • Setup your DFS namespace with DNS for compatibility in a mixed environment Setup your DFS namespace with DNS for compatibility in a mixed environment
  • How Virtual Reality Supports Mental Health Therapy How Virtual Reality Supports Mental Health Therapy
  • Key Strategies of Successful Coin Listing on Exchange Key Strategies of Successful Coin Listing on Exchange
  • Keeping Your Mac Healthy: A Comprehensive Guide to Maintenance and Troubleshooting Keeping Your Mac Healthy: A Comprehensive Guide to Maintenance and Troubleshooting
  • Making Distributed Software Development Work: Strategies and Best Practices for Managing Remote Teams Making Distributed Software Development Work: Strategies and Best Practices for Managing Remote Teams
  • customer contactless payment for drink with mobile phon at cafe counter bar,seller coffee shop accept payment by mobile.new normal lifestyle concept The Latest Innovations In Payment Technology
Ajax spinner

Elevator Pitch

404 Tech Support documents solutions to IT problems, shares worthwhile software and websites, and reviews hardware, consumer electronics, and technology-related books.

Subscribe to 404TS articles by email.

Recent Posts

  • How Virtual Reality Supports Mental Health Therapy
  • Key Strategies of Successful Coin Listing on Exchange
  • Keeping Your Mac Healthy: A Comprehensive Guide to Maintenance and Troubleshooting

Search

FTC Disclaimer

404TechSupport is an Amazon.com affiliate; when you click on an Amazon link from 404TS, the site gets a cut of the proceeds from whatever you buy. This site also uses Skimlinks for smart monetization of other affiliate links.
Use of this site requires displaying and viewing ads as they are presented.

Copyright © 2025 · Magazine Pro Theme on Genesis Framework · WordPress · Log in