Remove Extension Files
Removing files instruction depends on the way Facebook Open Graph extension has been installed in.
1. If you can find the extension files in the folder
then remove this folder.
2. If the extension was installed via the composer and its files located in the folder
then run composer CLI command to remove it
composer remove magefan/module-og-tags
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 open graph data.
1. Just in case please make a full backup (dump) of your Magento 2 database.
2. Run next MySQL queries to remove the extension data. E.g. you can use phpMyAdmin for this purpose.
DELETE FROM setup_module WHERE module = "Magefan_
DELETE FROM `patch_list` WHERE `patch_list`.`patch_name` LIKE '%Magefan\OgTags%';
DELETE FROM core_config_data WHERE path LIKE '
DELETE FROM eav_attribute WHERE attribute_code = "magefan_og_title";
DELETE FROM eav_attribute WHERE attribute_code = "magefan_og_description";
DELETE FROM eav_attribute WHERE attribute_code = "magefan_og_image";
DROP TABLE IF EXISTS magefan_og_blog_category;
DROP TABLE IF EXISTS magefan_og_cms_page;