#!/bin/sh set -e ONE_GROUP=cloud ONE_USER=oneadmin userdel -r ${ONE_USER} 2>/dev/null && echo ">> User '${ONE_USER}' has been removed." groupdel ${ONE_GROUP} 2>/dev/null && echo ">> Group '${ONE_GROUP}' has been removed." rm -rf /var/lib/one /var/run/one /var/log/one /var/lock/one 2>/dev/null exit 0