Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #880782

    Hello
    We are using wp 4.8 ,enfold latest, woocommerce latest

    our wp postmeta is getting huge recently, so we check in php admin and found out The default theme demo are still in the there
    how we can we delete by some SQL?

    BDW, are all the images and alt text and prices,product tags been stored the wp post meta?

    if yes, there are a lot of database trashed, how can we delete them in database?

    and if run below SQL, will it delete all the details from woocommerce singe product page(such as price,product tag, thumbnails, iamges?)

    DELETE FROM wp_postmeta WHERE meta_key = ‘_wp_attached_file’;

    DELETE FROM wp_postmeta WHERE meta_key = ‘_wp_attachment_metadata’;

    #881493

    Hey YongyanLi,

    I’m not a 100% sure, but shouldn’t simply deleting the demo content from WordPress be enough? I don’t think it should be necessary to run an SQL query for that.

    Best regards,
    Rikard

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