Skip to content

you can use SQL queries to delete WooCommerce products and categories directly from the database. However, be cautious when using this method, as it may leave orphaned data in your database. Make sure to backup your database before running any SQL queries to avoid data loss.

Notifications You must be signed in to change notification settings

starconfig/SQL-queries-to-delete-WooCommerce-products-and-categories

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

SQL-queries-to-delete-WooCommerce-products-and-categories

you can use SQL queries to delete WooCommerce products and categories directly from the database. However, be cautious when using this method, as it may leave orphaned data in your database. Make sure to backup your database before running any SQL queries to avoid data loss.

To execute these queries:

Access your WordPress site's database using a tool like phpMyAdmin, which is usually provided by your hosting provider.

Select your WordPress site's database.

Click the "SQL" tab or the equivalent option to execute SQL queries.

Copy and paste the SQL queries provided above, and execute them one at a time.

Please note that these queries assume your table prefix is wp_. If your table prefix is different, replace wp_ with your actual table prefix in the queries.

About

you can use SQL queries to delete WooCommerce products and categories directly from the database. However, be cautious when using this method, as it may leave orphaned data in your database. Make sure to backup your database before running any SQL queries to avoid data loss.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published