In case you decide you don’t want to use NitroPack’s performance optimizations, follow the steps below to uninstall NitroPack for Magento:
Step 1: Put your store in Maintenance Mode
To avoid a broken page, place your webstore in Maintenance mode by running the following command:
php bin/magento maintenance:enable
Step 2: Deactivate the NitroPack extension with this command
By running the following command, you will disable the NitroPack extension for Magento:
php bin/magento module:disable NitroPack_NitroPack
You should see the following success message:
📍Please note that the files will still exist, but NitroPack’s functionality will be detached from Magento.
Step 3: Remove the extension files via Composer
Run the following commands to remove the NitroPack extension files:
php bin/magento module:uninstall NitroPack_NitroPack
Here's the success message you should see after running the first command:
composer remove nitropack/magento2-extension
And after the second command:
Step 4: Finish the uninstallation
Run the following commands to finalize the uninstallation process:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
The following message indicated you’ve uninstalled the NitroPack extension successfully:
📍Please note the above commands are required for any uninstallation to set up the database, compile files, and prefetch front-end changes.
Step 5: Clean up the cache
Then, clean up the Magento cache so that the cache created from the NitroPack extension is removed.
php bin/magento cache:clean
php bin/magento cache:flush
Step 6: Disable Maintenance mode
The NitroPack extension for Magento is now successfully uninstalled. Lastly, exit Maintenance mode by running the following command:
php bin/magento maintenance:disable
📌 If you need any assistance or have questions, you can contact our Support team using the chat bubble on the bottom right of this page.