If you decide to remove Magento 2 Product Labels Extension, please follow the steps below. You can contact our team for a free consultation in case you have any issues with Magefan's extension.

Remove Extension Files

Removing files instructions depend on the way the Product Labels extension has been installed in.

1. If you can find the extension files in the folder

app/code/Magefan/ProductLabel
app/code/Magefan/ProductLabelPlus
app/code/Magefan/ProductLabelExtra

then remove this folder.

2. If the extension was installed via the composer and its files are located in the folder

vendor/magefan/module-product-label

then run composer CLI command to remove it

composer remove magefan/module-product-label*

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 Extension Data (optional)

Attention! This will clean all Product Labels data.

1. Just in case please make a full backup (dump) of your Magento 2 database.

2. Run the next MySQL queries to remove the extension data. E.g. you can use phpMyAdmin for this purpose.

DELETE FROM setup_module WHERE module = "Magefan_ProductLabel";
DELETE FROM `patch_list` WHERE `patch_list`.`patch_name` LIKE '%Magefan\ProductLabel%';
DELETE FROM setup_module WHERE module = "Magefan_ProductLabelPlus";
DELETE FROM `patch_list` WHERE `patch_list`.`patch_name` LIKE '%Magefan\ProductLabelPlus%';
DELETE FROM setup_module WHERE module = "Magefan_ProductLabelExtra";
DELETE FROM `patch_list` WHERE `patch_list`.`patch_name` LIKE '%Magefan\ProductLabelExtra%';
DELETE FROM core_config_data WHERE path LIKE 'mfproductlabel/%';
DROP TABLE IF EXISTS magefan_product_label_rule_store;
DROP TABLE IF EXISTS magefan_product_label_rule_product;
DROP TABLE IF EXISTS magefan_product_label_rule_group;
DROP TABLE IF EXISTS magefan_product_label_rule;