su Password: root-password
rpm -q -a | grep solarisstudio12.4
rpm -e package-name
Oracle Solaris Studio 12.4 rpm packages have the suffix 12.4, for example, solarisstudio12.4-cc-12.4-1. Be careful not to remove packages from Sun Studio releases, which have different suffixes.
rm -r /.nbi