Skip to content

Instantly share code, notes, and snippets.

View danie1k's full-sized avatar
😈
Automate! Automate everything!...

Daniel Kuruc danie1k

😈
Automate! Automate everything!...
View GitHub Profile
@danie1k
danie1k / removeCategories.sql
Last active November 13, 2015 09:27
Remove all Categories from Magento
SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE TABLE `catalog_category_entity`;
TRUNCATE TABLE `catalog_category_entity_datetime`;
TRUNCATE TABLE `catalog_category_entity_decimal`;
TRUNCATE TABLE `catalog_category_entity_int`;
TRUNCATE TABLE `catalog_category_entity_text`;
TRUNCATE TABLE `catalog_category_entity_varchar`;
TRUNCATE TABLE `catalog_category_product`;
TRUNCATE TABLE `catalog_category_product_index`;
@danie1k
danie1k / removeCustomers.sql
Last active November 13, 2015 09:26
Remove all Customers in Magento
SET FOREIGN_KEY_CHECKS=0;
TRUNCATE `customer_address_entity`;
TRUNCATE `customer_address_entity_datetime`;
TRUNCATE `customer_address_entity_decimal`;
TRUNCATE `customer_address_entity_int`;
TRUNCATE `customer_address_entity_text`;
TRUNCATE `customer_address_entity_varchar`;
TRUNCATE `customer_entity`;
TRUNCATE `customer_entity_datetime`;
TRUNCATE `customer_entity_decimal`;