This guidance only apply for POS Enterprise
Take a backup
Backup is always a good way to go back if we do something wrong with the system, don’t forget to do that before making any change to your system
Disable Magestore modules
Turn on maintenance mode
php bin/magento maintenance:enable
Switch to developer mode
php bin/magento deploy:mode:set developer
Remove cron
php bin/mageto cron:remove
Disable all Magestore modules
php bin/magento module:status | grep -i 'Magestore' | xargs php bin/magento module:disable
Remove data
Login to your database
Turn off foreign key checks
SET FOREIGN_KEY_CHECKS=0;
Drop tables created by Magestore modules
You can ignore tables that do not existDROP TABLE credit_code; DROP TABLE credit_transaction; DROP TABLE customer_credit; DROP TABLE giftcard_template; DROP TABLE giftvoucher; DROP TABLE giftvoucher_credit; DROP TABLE giftvoucher_credit_history; DROP TABLE giftvoucher_customer_voucher; DROP TABLE giftvoucher_history; DROP TABLE giftvoucher_product; DROP TABLE giftvoucher_sets; DROP TABLE giftvoucher_template; DROP TABLE ms_stocktaking; DROP TABLE ms_stocktaking_archive; DROP TABLE ms_stocktaking_archive_item; DROP TABLE ms_stocktaking_item; DROP TABLE os_adjuststock; DROP TABLE os_adjuststock_product; DROP TABLE os_barcode; DROP TABLE os_barcode_created_history; DROP TABLE os_barcode_template; DROP TABLE os_dropship_cancel; DROP TABLE os_dropship_cancel_item; DROP TABLE os_dropship_request; DROP TABLE os_dropship_request_item; DROP TABLE os_dropship_shipment; DROP TABLE os_dropship_shipment_item; DROP TABLE os_dropship_supplier_pricelist_upload; DROP TABLE os_dropship_supplier_shipment; DROP TABLE os_fulfilsuccess_batch; DROP TABLE os_fulfilsuccess_package; DROP TABLE os_fulfilsuccess_package_item; DROP TABLE os_fulfilsuccess_packrequest; DROP TABLE os_fulfilsuccess_packrequest_item; DROP TABLE os_fulfilsuccess_pickrequest; DROP TABLE os_fulfilsuccess_pickrequest_item; DROP TABLE os_increment_id; DROP TABLE os_inventorytransfer; DROP TABLE os_inventorytransfer_product; DROP TABLE os_inventorytransfer_receive; DROP TABLE os_inventorytransfer_receive_product; DROP TABLE os_ordersuccess_batch; DROP TABLE os_purchase_order; DROP TABLE os_purchase_order_code; DROP TABLE os_purchase_order_history; DROP TABLE os_purchase_order_invoice; DROP TABLE os_purchase_order_invoice_item; DROP TABLE os_purchase_order_invoice_payment; DROP TABLE os_purchase_order_invoice_refund; DROP TABLE os_purchase_order_item; DROP TABLE os_purchase_order_item_received; DROP TABLE os_purchase_order_item_returned; DROP TABLE os_purchase_order_item_transferred; DROP TABLE os_return_order; DROP TABLE os_return_order_item; DROP TABLE os_return_order_item_transferred; DROP TABLE os_supplier; DROP TABLE os_supplier_pricinglist; DROP TABLE os_supplier_product; DROP TABLE os_warehouse; DROP TABLE pos_order_aggregated_created; DROP TABLE pos_order_aggregated_updated; DROP TABLE pos_order_payment_aggregated; DROP TABLE reportsuccess_bookmark; DROP TABLE reportsuccess_cron_manual; DROP TABLE rewardpoints_customer; DROP TABLE rewardpoints_rate; DROP TABLE rewardpoints_rule; DROP TABLE rewardpoints_transaction; DROP TABLE type_transaction; DROP TABLE webpos_action_log; DROP TABLE webpos_authorization_role; DROP TABLE webpos_authorization_rule; DROP TABLE webpos_cash_denomination; DROP TABLE webpos_cash_transaction; DROP TABLE webpos_category_deleted; DROP TABLE webpos_customer_deleted; DROP TABLE webpos_location; DROP TABLE webpos_order; DROP TABLE webpos_order_deleted; DROP TABLE webpos_order_payment; DROP TABLE webpos_order_payment_error; DROP TABLE webpos_payment_offline; DROP TABLE webpos_pos; DROP TABLE webpos_product_deleted; DROP TABLE webpos_session; DROP TABLE webpos_shift; DROP TABLE webpos_staff; DROP TABLE webpos_stripe_terminal_connected_reader;
Turn on foreign key checks
SET FOREIGN_KEY_CHECKS=1;
Delete attributes created by Magestore modules
DELETE FROM `eav_attribute` WHERE `attribute_code` IN ('mac', 'storecredit_type','storecredit_rate', 'storecredit_value', 'storecredit_from', 'storecredit_to', 'storecredit_dropdown', 'gift_template_ids', 'gift_type', 'gift_value', 'gift_price', 'gift_from', 'gift_to', 'gift_dropdown', 'gift_price_type', 'gift_code_sets', 'gift_card_type', 'webpos_visible', 'created_location_id', 'customer_telephone', 'tmp_customer_id', 'sub_id');
Remove registered module
DELETE FROM `setup_module` WHERE `module` LIKE 'Magestore%'
Remove module code and dependencies
Remove code
rm -rf app/code/Magestore pub/apps
Remove 3rd module dependencies
⚠ If you have any modules that depend on the Magestore modules, you need to disable or remove them in this step too.Run compilation
php bin/magento setup:di:compile
Turn on production
php bin/magento deploy:mode:set production
Install cron
php bin/magento cron:install
There you go, you have completely removed Magestore POS