How to Delete a Custom Field from DB

Support General How to Delete a Custom Field from DBResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #23536
    Bret CarmichaelBret Carmichael
    Participant

    Hi,

    I'm new to Meta Box. This is a N00B question. I did a search, but either used the wrong search term or misunderstood the result.

    I created a custom field in the : ee_custom_field in the Custom Fields UI area. I ended-up not needing it, so I deleted it. However, when inserting data via a shortcode (using Oxygen), I can see that the field still exists.

    My question is; how can I delete the not-needed field from the WP database?

    Thanks!

    #23540
    Long NguyenLong Nguyen
    Moderator

    Hi Bret,

    WordPress does not support an option to delete the custom field value aka post meta (key and value). You can use this plugin to delete the custom field in the database https://wordpress.org/plugins/bulk-delete/.

    Or use the function delete_post_meta(), and refer to this topic https://wordpress.stackexchange.com/questions/246684/remove-post-meta-keys.

    #23541
    Bret CarmichaelBret Carmichael
    Participant

    Hi long,

    Thank you very much for your detailed answer and the quick reply!

    :: Bret 😀

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.