If you decided to remove the Optimized Magento 2 Theme by Magefan, please follow the steps below. You can contact our team for a free consultation in case you have any issues with Magefan's theme.
Post Contents [hide]
Remove Theme Files
1. If you can find the theme files in the folder
app/code/Magefan/ThemeOptimized
app/design/frontend/Magefan/optimized
then remove these folders. Also, you can remove other Magefan modules you don't need in the app/code/Magefan.
2. If the theme was installed via the composer and its files are located in the folder
vendor/magefan/theme-frontend-optimized
then run the composer CLI command to remove it
composer remove magefan/theme-NAME
# replace NAME with:
# frontend-optimized - for Optimized Magento 2 Theme
# frontend-optimized-plus - for Optimized Magento 2 Theme Plus
Once extension files have been removed, run these Magento CLI commands:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
Note: if you don't want your website to be down during deployment, try these zero downtime deployment commands for Magento 2.
Remove Theme Data (optional)
Attention! This will clean all Optimized Magento 2 Theme logs and settings.
1. Just in case please make a full backup (dump) of your Magento 2 database.
2. Run the next MySQL queries to remove the data. E.g. you can use phpMyAdmin for this purpose.
DELETE FROM setup_module WHERE module = "Magefan_ThemeOptimized";
DELETE FROM `patch_list` WHERE `patch_list`.`patch_name` LIKE '%Magefan\ThemeOptimized%'; DELETE FROM core_config_data WHERE path LIKE 'mfthemefo/%';