src/OwpUsers.inc.php
public function deleteUser($userID)
    {

        if (!(int)$userID) {
            return false;
        }

        $query_sql = "
            DELETE FROM tbl_users
            WHERE tbl_users.userID = " . (int)$userID . " LIMIT 1";

        $this->OwpDBMySQLi->query($query_sql);

        $query_sql = "
            DELETE FROM tbl_users_meta_data
            WHERE tbl_users_meta_data.userID = " . (int)$userID;

        $this->OwpDBMySQLi->query($query_sql);

        $query_sql = "
            DELETE FROM tbl_users_rights
            WHERE tbl_users_rights.userID = " . (int)$userID;

        $this->OwpDBMySQLi->query($query_sql);

        // Execute owpUDF_On_deleteUser user defined function
        if (function_exists("owpUDF_On_deleteUser")) {
            $owpUDF_On_deleteUser = owpUDF_On_deleteUser(array("userID" => (int)$userID, "db" => $this->OwpDBMySQLi));
            if ($owpUDF_On_deleteUser) {
                throw new Exception((string)$owpUDF_On_deleteUser, 30);
            }
        }

        // unset the session if the user being deleted is logged in.
        if ((int)self::userID() === (int)$userID && isset($_SESSION["userData"])) {
            unset($_SESSION["userData"]);
        }

        return true;

    }
public function deleteUser($userID)
    {

        if (!(int)$userID) {
            return false;
        }

        $query_sql = "
            DELETE FROM tbl_users
            WHERE tbl_users.userID = " . (int)$userID . " LIMIT 1";

        $this->OwpDBMySQLi->query($query_sql);

        $query_sql = "
            DELETE FROM tbl_users_meta_data
            WHERE tbl_users_meta_data.userID = " . (int)$userID;

        $this->OwpDBMySQLi->query($query_sql);

        $query_sql = "
            DELETE FROM tbl_users_rights
            WHERE tbl_users_rights.userID = " . (int)$userID;

        $this->OwpDBMySQLi->query($query_sql);

        // Execute owpUDF_On_deleteUser user defined function
        if (function_exists("owpUDF_On_deleteUser")) {
            $owpUDF_On_deleteUser = owpUDF_On_deleteUser(array("userID" => (int)$userID, "db" => $this->OwpDBMySQLi));
            if ($owpUDF_On_deleteUser) {
                throw new Exception((string)$owpUDF_On_deleteUser, 30);
            }
        }

        // unset the session if the user being deleted is logged in.
        if ((int)self::userID() === (int)$userID && isset($_SESSION["userData"])) {
            unset($_SESSION["userData"]);
        }

        return true;

    }
deleteUser

@method boolean deleteUser($userID) Permanently remove a user record.
@access public

@param int $userID Existing userID

@return boolean Success or failure

@throws Exception Thrown on UDF failures code 30

@author  Brian Tafoya <btafoya@briantafoya.com>
@version 1.0