#!/bin/ksh -p

# This script gets passed in a list of packages from an FMLI form.
# It will then DELETE THEM, FORCIBLY.
#


# This is to tell pkgrm to shut up and do the job
ADMINFILE=$MENUDIR/pkg.admin

print "pkgdelete: Packages to delete are $*"

for pkg in $@ ; do
	pkgrm -a $ADMINFILE $pkg
done

exit 0
