We can deinstall oracle client by runnning the deinstall tool provided by oracle client software.
[oracle@bt-Prov-devst1 client_1]$ cd deinstall/
[oracle@bt-Prov-devst1 deinstall]$ ls -ltr
total 92
-rwxr-xr-x. 1 oracle oinstall 32343 Dec 16 2009 sshUserSetup.sh
-rw-r–r–. 1 oracle oinstall 409 Aug 18 2010 readme.txt
-rw-r–r–. 1 oracle oinstall 3466 Aug 18 2010 deinstall.xml
-rwxr-xr-x. 1 oracle oinstall 9780 May 10 2011 bootstrap.pl
-rwxr-xr-x. 1 oracle oinstall 18841 Jan 29 2013 deinstall.pl
drwxr-xr-x. 2 oracle oinstall 4096 Sep 16 12:58 jlib
drwxr-xr-x. 2 oracle oinstall 4096 Sep 16 12:58 response
-rwxr-xr-x. 1 oracle oinstall 9665 Sep 16 12:58 deinstall
While running deinstall tool , it will ask for below details. So be ready with the information.
Oracle Home selected for deinstall is: /oracle/app/oracle/product/11.2.0/client_1
Inventory Location where the Oracle home registered is: /oracle/app/oraInventory
Now start deinstallation.
[oracle@bt-Prov-devst1 deinstall]$ ./deinstall Checking for required files and bootstrapping ... Please wait ... Location of logs /tmp/deinstall2015-09-16_01-08-01PM/logs/ ############ ORACLE DEINSTALL & DECONFIG TOOL START ############ ######################### CHECK OPERATION START ######################### ## [START] Install check configuration ## Checking for existence of the Oracle home location /oracle/app/oracle/product/11.2.0/client_1 Oracle Home type selected for deinstall is: Oracle Database Client Oracle Base selected for deinstall is: /oracle/app/oracle Checking for existence of central inventory location /oracle/app/oraInventory Checking for sufficient temp space availability on node(s) : 'bt-Prov-devst1' ## [END] Install check configuration ## Network Configuration check config START Network de-configuration trace file location: /tmp/deinstall2015-09-16_01-08-01PM/logs/netdc_check2015-09-16_01-08-20-PM.log Network Configuration check config END ######################### CHECK OPERATION END ######################### ####################### CHECK OPERATION SUMMARY ####################### Oracle Home selected for deinstall is: /oracle/app/oracle/product/11.2.0/client_1 Inventory Location where the Oracle home registered is: /oracle/app/oraInventory Do you want to continue (y - yes, n - no)? [n]: y A log of this session will be written to: '/tmp/deinstall2015-09-16_01-08-01PM/logs/deinstall_deconfig2015-09-16_01-08-18-PM.out' Any error messages from this session will be written to: '/tmp/deinstall2015-09-16_01-08-01PM/logs/deinstall_deconfig2015-09-16_01-08-18-PM.err' ######################## CLEAN OPERATION START ######################## Network Configuration clean config START Network de-configuration trace file location: /tmp/deinstall2015-09-16_01-08-01PM/logs/netdc_clean2015-09-16_01-08-33-PM.log De-configuring backup files... Backup files de-configured successfully. The network configuration has been cleaned up successfully. Network Configuration clean config END Setting the force flag to false Setting the force flag to cleanup the Oracle Base Oracle Universal Installer clean START Detach Oracle home '/oracle/app/oracle/product/11.2.0/client_1' from the central inventory on the local node : Done Delete directory '/oracle/app/oracle/product/11.2.0/client_1' on the local node : Done Delete directory '/oracle/app/oraInventory' on the local node : Done Delete directory '/oracle/app/oracle' on the local node : Done Oracle Universal Installer cleanup was successful. Oracle Universal Installer clean END ## [START] Oracle install clean ## Clean install operation removing temporary directory '/tmp/deinstall2015-09-16_01-08-01PM' on node 'bt-Prov-devst1' ## [END] Oracle install clean ## ######################### CLEAN OPERATION END ######################### ####################### CLEAN OPERATION SUMMARY ####################### Successfully detached Oracle home '/oracle/app/oracle/product/11.2.0/client_1' from the central inventory on the local node. Successfully deleted directory '/oracle/app/oracle/product/11.2.0/client_1' on the local node. Successfully deleted directory '/oracle/app/oraInventory' on the local node. Successfully deleted directory '/oracle/app/oracle' on the local node. Oracle Universal Installer cleanup was successful. Run 'rm -rf /etc/oratab' as root on node(s) 'bt-Prov-devst1' at the end of the session. Oracle deinstall tool successfully cleaned up temporary directories. ####################################################################### ############# ORACLE DEINSTALL & DECONFIG TOOL END #############