Purge Everything


#1

While trying to change some things around, I managed to screw up some config files. Then while trying to fix everything, I bombed it further.

How can I purge absolutely everything that was ever associated with the web server without nuking the OS?

I have tried to do the ‘ee system purge’ ‘ee system remove’ and 'aptitude purge … ’

When I reinstall the LEMP stack using ‘ee system install’ something from the previous setup is being retained. I can confirm that because it remembered my custom wordpress admin password when i created a site.

How can I delete EVERYTHING? Including any configurations and settings from the past. I want to start from scratch.

Thanks!


#2

For complete purge you need to issue following commands
Please note that below commands remove all your websites files and mysql database also

Remove packages nginx php5-fpm mysql postfix phpmyadmin etc
ee system purge

Remove easyengine files:
rm -rf /etc/easyengine/ /etc/bash_completion.d/ee /usr/local/sbin/ee /usr/local/sbin/easyengine /usr/share/easyengine

Remove your websites:
rm -rf /var/www/*

Cross check and remove following folders
rm -rf /etc/nginx /etc/php5 /etc/mysql /var/lib/mysql /etc/postfix


#3

Hi @drewahner,

I hope your query is resolved. I am closing this support ticket for now.

Feel free to create a new support ticket if you have any queries further. :slight_smile:


#4