This website uses Cookies Read Privacy Policy
Skip to content
  • Videos
  • What’s New
  • Support
    • Documentation
    • Open Support Ticket
  • Pricing
  • My Account
  • Download

MySQL Query – Delete all WooCommerce Bookings

If you need to delete all WooCommerce booking with the custom post type wc_booking you can use the MySQL query below:

DELETE FROM wpstg4_postmeta WHERE post_id IN ( SELECT ID FROM wpstg4_posts WHERE post_type = 'wc_booking' );
DELETE FROM wpstg4_posts WHERE post_type = 'wc_booking';

ShareTweetMail
Author Rene HermenauPosted on January 14, 2019July 18, 2021Posted In: Knowledge BaseTags: woocommerce database query
Do you want to know more about WP STAGING?

Get news, tutorials, in-depth knowledge and WordPress insights directly into your inbox.

Invalid email address
Company
  • Our Story
  • Reviews
  • About Us
  • Open Jobs
  • Contact us
Resources
  • FAQ
  • Documentation
  • Blog
  • Refund Policy
  • Privacy Policy
  • OWASP Secure Coding Practices
  • Status
Partners
  • Affiliate Program
  • Press Kit
Top Articles
  • What is the Best WordPress Backup Plugin?
  • How to Backup WordPress Automatically
  • How to Backup WordPress Manually
  • Transfer WordPress to New Host
  • Activate WordPress Debug Mode
  • Backup Website to Amazon S3
  • A WordPress Developer Short Story

  • Terms
  • Imprint