How to Uninstall POS Standard

This guidance only apply for POS Standard

 

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

  1. Turn on maintenance mode

    1 php bin/magento maintenance:enable

     

  2. Switch to developer mode

    1 php bin/magento deploy:mode:set developer

     

  3. Remove cron

    1 php bin/magento cron:remove

     

  4. Disable all Magestore modules

    1 php bin/magento module:status | grep -i 'Magestore' | xargs php bin/magento module:disable

     

Remove data

  1. Login to your database

  2. Turn off foreign key checks

    1 SET FOREIGN_KEY_CHECKS=0;

     

  3. Drop tables created by Magestore modules
    You can ignore tables that do not exist

    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 DROP TABLE os_warehouse; 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_deleted; DROP TABLE webpos_order_payment; DROP TABLE webpos_pos; DROP TABLE webpos_order; DROP TABLE webpos_action_log; DROP TABLE webpos_order_payment_error; DROP TABLE webpos_product_deleted; DROP TABLE webpos_search_product; DROP TABLE webpos_session; DROP TABLE webpos_shift; DROP TABLE webpos_staff; DROP TABLE webpos_authorization_role; DROP TABLE webpos_authorization_rule;

     

  4. Turn on foreign key checks

    1 SET FOREIGN_KEY_CHECKS=1;

     

  5. Delete attributes created by Magestore modules

    1 DELETE FROM `eav_attribute` WHERE `attribute_code` IN ('created_location_id', 'webpos_visible', 'customer_telephone', 'sub_id', 'tmp_customer_id');

     

  6. Remove registered module

    1 DELETE FROM `setup_module` WHERE `module` LIKE 'Magestore%'

     

Remove module code and dependencies

  1. Remove code

    1 rm -rf app/code/Magestore pub/apps

     

  2. 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.

  3. Run compilation

    1 php bin/magento setup:di:compile

     

  4. Turn on production

    1 php bin/magento deploy:mode:set production

     

  5. Turn on cron

    1 php bin/magento cron:install

 

There you go, you have completely removed Magestore POS