Magento 2 SMTP v1.x Uninstalling

Here you will learn how to easily remove Magento 2 SMTP using two methods – via the Automated Removal Script or Composer.

You can choose one of the following two methods to remove the extension from your Magento 2 store.

Automated Extension Removal Script

In order to remove this module by means of a script, please:

1. Download the archive and unpack it.

2. Upload it to the root directory of the site as it is shown below:

Detailed description:

  1. It is your client side. You will see your module removal script file.
  2. This is your root directory on server side. This is where the file should be uploaded to.
  3. All the files must be uploaded to the server. Select the file and press the right button of your mouse.
  4. Select the “Upload” option in order to upload the file to the server.

1 uninstall magento 2 accelerated mobile pages

3.Please, enter the script path into your browser’s address bar and follow this address. The path format is:

where “yourdomain” is the name of your domain.

The screenshot below shows the page that will appear after you run the universal uninstall script:

Detailed description:

  1. In the window opened, you will see the “Remove” button next to the “Plumrocket_Smtp” title. In order to remove an extension, press the “Remove” button.

2 uninstall magento 2 SMTP email

Detailed description:

  1. If you see the “Extension removed successfully” message, this means that Magento 2 SMTP Extension has been removed successfully.
  2. After you finish, please make sure to remove the uninstall script from your server.

3 uninstall magento 2 accelerated mobile pages

At this point, Magento 2 SMTP extension has been successfully removed from your server.

Remove Extension via the Composer

In order to remove your Magento 2 SMTP extension via the Composer, open the console (SSH terminal) and follow commands:

1. In terminal, switch to your Magento 2 root directory using command:


where “FULL_PATH_TO_YOUR_MAGENTO2” is the path to your Magento 2 folder on your server.

2. Disable the extension:

php bin/magento module:disable Plumrocket_Smtp

3. Remove the extension:

composer remove plumrocket/module-smtp

4. Run the next three Magento 2 commands:

 php bin/magento setup:upgrade
 php bin/magento setup:di:compile
 php bin/magento setup:static-content:deploy

After running these commands, the extension should be uninstalled successfully. Similar message should be displayed in your console as displayed below:

Installation of extension via composer by plumrocket v3

5. Below you will find the SQL command designed to delete all extension information from the database:

DELETE FROM core_config_data WHERE path LIKE 'prsmtp/%';
DELETE FROM setup_module WHERE module = 'Plumrocket_Smtp';
DROP TABLE IF EXISTS plumrocket_smtp_email_log;

6. Clear Magento Cache:

php bin/magento cache:flush

At this point, Magento 2 SMTP extension has been successfully removed from your server.

Was this article helpful?