#! /bin/sh

# You'll have to change this script to suit your system.
#
# ACUA v3.01 - Updated to use userdel.
#
# NOTE: acua delrec must be run before any util that deletes user accounts

if [ $# != "1" ]; then
  echo "usage: acua_del <login>"
  exit 1
fi

LOGIN="$1"

/usr/bin/acua kickUser "$LOGIN"
/usr/bin/acua delRec "$LOGIN"
/usr/sbin/userdel -r "$LOGIN"	# removes mail spool and home directory.

exit 0
