
    if [ -d "${APP_DIRECTORY}/conf/users/${USERNAME}" ] ; then
         RM_DIRS "${APP_DIRECTORY}/conf/users/${USERNAME}"
    fi

    RM_FILES \
        "/etc/apache2/passwords-available/rtorrentscgi-${USERNAME}.conf" \
        "/etc/apache2/passwords-enabled/rtorrentscgi-${USERNAME}.conf" \
        "/etc/apache2/sites-available/rtorrentscgi-${USERNAME}.conf" \
        "/etc/apache2/sites-enabled/rtorrentscgi-${USERNAME}.conf" \
        "/etc/apache2/userconf-enabled/rutorrent-${USERNAME}.conf"

    [ -f "${APP_DIRECTORY}/.htpasswd" ] && \
        RUN_LOG "htpasswd -D '${APP_DIRECTORY}/.htpasswd' ${USERNAME} 2>&1"

    # It was last user in ruTorrent? - Will delete ruTorrent from machine....
    if [ ! -s "${APP_DIRECTORY}/.htpasswd" ] ; then
        if [ -d "${APP_DIRECTORY}" ] ; then
             RM_DIRS "${APP_DIRECTORY}"
        fi
        RM_FILES \
            "/etc/apache2/passwords-available/rtorrentscgi.conf" \
            "/etc/apache2/passwords-enabled/rtorrentscgi.conf" \
            "/etc/apache2/sites-available/rtorrentscgi.conf" \
            "/etc/apache2/sites-enabled/rtorrentscgi.conf" \
            "/etc/apache2/sites-available/rutorrent-8080.conf" \
            "/etc/apache2/sites-enabled/rutorrent.conf" \
            "/etc/apache2/sites-available/rutorrent.conf" \
            "/etc/apache2/sites-enabled/rutorrent-8080.conf" \
            "/var/www/rutorrent/plugins/fileshare/share.php"
    fi

    # Reload Apache service
    SVC_RELOAD "${APACHE_SVC}"
