How do I completely uninstall EE 4 and wordpress

Hi,

Beginner here. I tried to install Wordpress on my Ubuntu computer. The tutorials I found were all too hard for me until yesterday I found EasyEngine. It sounded super easy. Then I followed the instructions to install EE4. It’s successful. But when I logged in, I found I couldn’t use the Wordpress plugin without which I didn’t want to install Wordpress .

Now Wordpress becomes useless on my computer.

And when I started my computer today, a system error message popped up and asked me to restart my computer. It took an unusually long time to restart.

Then I thought I should just uninstall Wordpress and EE. I searched in this forum and found the command ee cli self-uninstall. But I got an error message: Error: Config root: /opt/easyengine is not writable by EasyEngine

My system version:
±------------------±---------------------------------------------------------+
| OS | Linux 4.18.0-16-generic #17~18.04.1-Ubuntu SMP Tue Feb 1 |
| | 2 13:35:51 UTC 2019 x86_64 |
| Shell | /bin/bash |
| PHP binary | /usr/bin/php7.2 |
| PHP version | 7.2.17-1+ubuntu18.04.1+deb.sury.org+3 |
| php.ini used | /etc/php/7.2/cli/php.ini |
| EE root dir | phar://ee.phar |
| EE vendor dir | phar://ee.phar/vendor |
| EE phar path | /home/user |
| EE packages dir | |
| EE global config | |
| EE project config | |
| EE version | 4.0.12 |
±------------------±---------------------------------------------------------+

Could someone help me with the uninstallation of Wordpress and EE?

Thanks!

Have you tried using sudo?

Hi cim,

No. I have only tried ee cli self-uninstall.

You need to use sudo because the EE files are located in root directories.

OK.
Could you please tell me what sudo commands I should execute? I am afraid if I execute the wrong commands, it would damage the system.

You just need to add sudo in front of that:

sudo ee cli self-uninstall

OK. I’ll try it. Thanks!

After executing the command, I got about 5Gb space freed. So I assume I’ve uninstalled it.
Thanks!

You’re welcome.