If that does not work, you can perform these steps to remove the software using only unix tools:
1.) On client run "commvault stop" (this may not work if broken)
2.) Run "ps -ef | grep -i commvault" command to make sure no CV processes are running.
If there is a process running, run "kill -9 <pid>" to kill it.
3.) Run rm -rf /etc/CommVaultRegistry
4.) Run rm -rf /opt/commvault
5.) Run rm -rf /tmp/.gxset*
6.) Run rm -rf /var/log/commvault/*
@ArunKT reported that this is resolved:
I could find answer myself․ I could delete commvault related directories and able to install mediaagent successfully․ Thanks․
Could you provide the instructions you have followed?