public function delete($id)
    {
        $db = new DB();
        $result = $db->db()->delete(['db_name'=>__config()->auth->db_name, 'table'=>__config()->auth->db_table, 'wheres'=>['id ='."'{$id}'"]]);
        $db->db()->close();

        return $result;
    }
public function delete($id)
    {
        $db = new DB();
        $result = $db->db()->delete(['db_name'=>__config()->auth->db_name, 'table'=>__config()->auth->db_table, 'wheres'=>['id ='."'{$id}'"]]);
        $db->db()->close();

        return $result;
    }
public function delete ( $ id ) { $ db = new DB ( ) ; $ result = $ db -> db ( ) -> delete ( [ 'db_name' => __config ( ) -> auth -> db_name , 'table' => __config ( ) -> auth -> db_table , 'wheres' => [ 'id =' . "'{$id}'" ] ] ) ; $ db -> db ( ) -> close ( ) ; return $ result ; }
Delete user by id.

@param $id id or guide of user

@since 3.0.0

@return bool
Delete user by id .