How to Disable/Enable Modules in Magento 2.x

Log in to your Magento directory using SSH.

Disable RMA

  • bin/magento module:disable Aheadworks_Rma
  • bin/magento setup:upgrade
  • rm -rf var/cache/*
  • rm -rf var/page_cache/*
  • rm -rf generated/*

Enable RMA

  • bin/magento module:enable Aheadworks_Rma
  • bin/magento setup:upgrade
  • rm -rf var/cache/*
  • rm -rf var/page_cache/*
  • rm -rf generated/*