0

I want truncate all tables of companies in Magento 2

1 Answer 1

0

[Note] : Please take database backup prior to executing these queries.

To truncate all tables of company magento 2 B2B

SET FOREIGN_KEY_CHECKS = 0;

TRUNCATE TABLE `company`;
TRUNCATE TABLE `company_advanced_customer_entity`;
TRUNCATE TABLE `company_credit`;
TRUNCATE TABLE `company_credit_history`;
TRUNCATE TABLE `company_order_entity`;
TRUNCATE TABLE `company_payment`;
TRUNCATE TABLE `company_permissions`;
TRUNCATE TABLE `company_roles`;
TRUNCATE TABLE `company_structure`;
TRUNCATE TABLE `company_team`;
TRUNCATE TABLE `company_user_roles`;
TRUNCATE TABLE `negotiable_quote_company_config`;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.