Home Forums General Issues Flush Unused Custom Fields Reply To: Flush Unused Custom Fields

  • Hey guys,

    There aren’t updates for a couple of years. And the topic isn’t super simple when conditional fields come into play.

    Nevertheless, I needed to delete a big amount of unused fields for a website we’re maintaining for years. As fields get renamed or deleted, meta fields stay unused in the database. While the size of the database gets unnecessary bigger we also had an issue in the search (since old fields were found).

    I didn’t found a proper and safe solution without a heavy SQL query to remove those data. So I created a plugin using functions provided by ACF to remove unused metadata.

    Create a database dump and give it a try:

    Hope it helps and not just me
    Cheers Marc