You can run the deinstallation tool using the setup.exe command with the -deinstall and -home options from the base directory of the Oracle Database, Oracle Database Client, or Oracle Grid Infrastructure installation media.
Starting with Oracle Database 12 c Release 1 (12.1), the deinstallation tool is integrated with Oracle Universal Installer (OUI).