Home › Forums › Feature Requests › How to flush old unused custom fields on database › Reply To: How to flush old unused custom fields on database
Here’s a thread where I worked out a way to do this for specific fields with John’s help: https://support.advancedcustomfields.com/forums/topic/pruning-orphaned-flex-field-data/
If your fields are all child fields of a single flex/repeater/group, or share some common prefix, etc, then you could apply this to clean up the database each time a post is saved.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.