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

Remove Extension Files

Removing files instruction depends on the way Blog extension has been installed in.

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

app/code/Magefan/Blog
app/code/Magefan/BlogPlus
app/code/Magefan/BlogAuthor
app/code/Magefan/BlogAuthor
app/code/Magefan/BlogImport

then remove these folders.

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

vendor/magefan/module-blog

then run composer CLI command to remove it

composer remove magefan/module-NAME
# replace NAME with:
# blog - for blog extension
# blog-plus - for blog plus extension
# blog-extra - for blog extra extension

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
php bin/magento cache:flush

 

Remove Extension Data & Configuration (optional)

Attention! This will clean all blog data, including blog posts, categories, tags, configurations, etc.

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

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

DELETE FROM setup_module WHERE module = "Magefan_Blog";
DELETE FROM setup_module WHERE module = "Magefan_BlogPlus";
DELETE FROM setup_module WHERE module = "Magefan_BlogExtra"; DELETE FROM core_config_data WHERE path LIKE 'mfblog/%'; DROP TABLE IF EXISTS magefan_blog_product_tmp; DROP TABLE IF EXISTS magefan_blog_category_group; DROP TABLE IF EXISTS magefan_blog_category_store; DROP TABLE IF EXISTS magefan_blog_post_category; DROP TABLE IF EXISTS magefan_blog_post_group; DROP TABLE IF EXISTS magefan_blog_post_relatedpost; DROP TABLE IF EXISTS magefan_blog_post_relatedpost_log; DROP TABLE IF EXISTS magefan_blog_post_relatedproduct; DROP TABLE IF EXISTS magefan_blog_post_relatedproduct_log; DROP TABLE IF EXISTS magefan_blog_post_store; DROP TABLE IF EXISTS magefan_blog_post_tag; DROP TABLE IF EXISTS magefan_blog_category; DROP TABLE IF EXISTS magefan_blog_comment; DROP TABLE IF EXISTS magefan_blog_post; DROP TABLE IF EXISTS magefan_blog_tag;