public function delete($user)
    {
        if (!is_object($user)) {
            $user = $this->find($user);
        }

        if ($user instanceof User) {
            if ($this->fireEvent('deleting', array($user)) === false) {
                return false;
            }

            $user->delete($this);

            $this->fireEvent('deleted', array($user));
        }
    }
public function delete($user)
    {
        if (!is_object($user)) {
            $user = $this->find($user);
        }

        if ($user instanceof User) {
            if ($this->fireEvent('deleting', array($user)) === false) {
                return false;
            }

            $user->delete($this);

            $this->fireEvent('deleted', array($user));
        }
    }
public function delete ( $ user ) { if ( ! is_object ( $ user ) ) { $ user = $ this -> find ( $ user ) ; } if ( $ user instanceof User ) { if ( $ this -> fireEvent ( 'deleting' , array ( $ user ) ) === false ) { return false ; } $ user -> delete ( $ this ) ; $ this -> fireEvent ( 'deleted' , array ( $ user ) ) ; } }
Delete a User.

@param User|string $user The user_uid or the user model

@return User

@pi
Delete a User .