4 echo "Usage: mem_del <name>"
5 echo " Delete the AlternC account <name>"
11 if [[ ! "$name" =~ ^([a-z0-9]+)$ ]] ; then
12 echo "Account name is incorrect."
17 if [[ ! "$(id -u)" == "0" ]] ; then
18 echo "please launch mem_del as root (or using sudo)"
22 # Get the vars and some functions
23 source /usr/lib/alternc/functions.sh
24 target="$(get_html_path_by_name "$name")"
26 test -d "$target" && rm -rf "$target"