Often we encounter problems installing the Oracle 10g or 11g Express Edition on Linux (usually Ubuntu), and we need to remove the entire installation to try to re-install again.
Below is a Script to clean Up the Oracle XE on your machine, simply copy and paste into your command prompt with SUDO user to have the necessary permissions to run the commands.