Title: Remove ACF-fields programmatically
Last modified: October 5, 2020

---

# Remove ACF-fields programmatically

 *  [kuckovic](https://wordpress.org/support/users/kuckovic/)
 * (@kuckovic)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/remove-acf-fields-programmatically/)
 * Hi all
 * I’m looking for a way to remove empty flexible-fields programmatically.
    I’ve
   imported more than 5000 posts, and while doing this, I had to add a LOT of flexible-
   field, to make sure we got all the data in a post.
 * Now, there are a lot of empty flexible fields when I edit a post – how can I 
   remove those?? I’ve tried with PHPMyAdmin – but no luck 🙁
 * What can I do?
    CAN I do anything at all?
 * Thanks in advance
    Aris

The topic ‘Remove ACF-fields programmatically’ is closed to new replies.

 * ![](https://ps.w.org/advanced-custom-fields/assets/icon.svg?rev=3207824)
 * [Advanced Custom Fields (ACF®)](https://wordpress.org/plugins/advanced-custom-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-custom-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-custom-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-custom-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-custom-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-custom-fields/reviews/)

## Tags

 * [ACF](https://wordpress.org/support/topic-tag/acf/)
 * [allimport](https://wordpress.org/support/topic-tag/allimport/)
 * [empty](https://wordpress.org/support/topic-tag/empty/)

 * 0 replies
 * 1 participant
 * Last reply from: [kuckovic](https://wordpress.org/support/users/kuckovic/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/remove-acf-fields-programmatically/)
 * Status: not resolved