How do I totally remove ee v4?

How do I totally remove ee v4 as I want to install ee v3 instead. The reason is because I can’t make ee v4 working in local dev server with local domain like myproject.local.

Thanks.

sudo rm -fr /*.*

but don’t do that… I’m pretty sure it’s not removable. just rebuilt a fresh machine.

ee cli self-uninstall

Thanks all. I ended up rebuilding the machine because ee v3 doesn’t support Debian 9 which was the OS on the existing machine.