Become superuser.
Remove the script from the RCM script directory.
For example:
# rm /usr/lib/rcm/scripts/SUNW,sample.pl
Send SIGHUP to the RCM daemon.
# pkill -HUP -x -u root rcm_daemon