Magento 2 Custom Order Number v1.x Uninstalling

Here you will learn how to easily remove the Custom Order Number extension for Magento 2 using composer.

Remove Extension via Composer

In order to remove your Magento 2 Custom Order Number extension via Composer, open the console (SSH terminal) and follow commands:

1. In the terminal, switch to your Magento 2 root directory using the command:


where “FULL_PATH_TO_YOUR_MAGENTO2” is the path to your Magento 2 folder on your server.

2. Disable the extension:

php bin/magento module:disable Plumrocket_CustomOrderNumber

3. Remove the extension:

composer remove plumrocket/module-custom-order-number

4. Run the next three Magento 2 commands:

 php bin/magento setup:upgrade
 php bin/magento setup:di:compile
 php bin/magento setup:static-content:deploy

After running these commands, the extension should be uninstalled successfully. A similar message should be displayed in your console as displayed below:

Installation of extension via composer by plumrocket v3

5. Below you will find the SQL command designed to delete all extension information from the database:

DELETE FROM core_config_data WHERE `path` LIKE 'pr_order_number/%';
DROP TABLE IF EXISTS `plumrocket_custom_number_counter`;

6. Clear Magento Cache:

php bin/magento cache:flush

At this point, the Magento 2 Custom Order Number extension has been successfully removed from your server.

Was this article helpful?