def delete(self) -> None:
        """Deletes the user from Argilla.

        Raises:
            ValueError: if the user doesn't exist in Argilla.
            RuntimeError: if the user cannot be deleted from Argilla.

        Examples:
            >>> from argilla_v1 import rg
            >>> user = rg.User.from_name("my-user")
            >>> user.delete()
        """
        try:
            users_api.delete_user(self._client, user_id=self.id)
        except NotFoundApiError as e:
            raise ValueError(
                f"User with username=`{self.username}` doesn't exist in Argilla, so please"
                " make sure that the name you provided is a valid one."
            ) from e
        except BaseClientError as e:
            raise RuntimeError(f"Error while deleting user with username=`{self.username}` from Argilla.") from e
Deletes the user from Argilla.

        Raises:
            ValueError: if the user doesn't exist in Argilla.
            RuntimeError: if the user cannot be deleted from Argilla.

        Examples:
            >>> from argilla_v1 import rg
            >>> user = rg.User.from_name("my-user")
            >>> user.delete()
        
argilla-v1/src/argilla_v1/client/users.py