Here you will learn how to easily remove the CSP Reports extension from your Magento.
Step 1. Switch to your Magento 2 root directory in the terminal
cd /FULL_PATH_TO_YOUR_MAGENTO2
where “FULL_PATH_TO_YOUR_MAGENTO2” is the path to your Magento 2 folder on your server.
Step 2. Disable the extension:
bin/magento module:disable Plumrocket_Csp
Step 3. Remove the extension files
For Composer installation
composer remove plumrocket/module-csp-reports
For non-Composer installation
rm -rf app/code/Plumrocket/Csp
Step 3. Update static resources
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy
bin/magento cache:flush
At this point, the CSP Reports Magento 2 extension has been successfully removed from your server.
Was this article helpful?