To uninstall the entire Oracle Solaris Studio 12.4 software on an Oracle Solaris 11 platform, type:
% sudo pkg uninstall 'developer/solarisstudio-124/*'
To uninstall individual components, type the following where package-name is one of the packages listed in Table B–2:.
% sudo pkg uninstall 'developer/solarisstudio-124/package-name'
Note that some packages cannot be uninstalled by themselves because other packages have dependencies on them.