def reset(self, commit: Optional[str]=None, soft: bool=False, use_path: bool=False) -> None:
    'Reset the current branch HEAD to the specified commit path. If `soft` is not True, it will be a hard reset, meaning reset to that commit in the backend and newer commit will be wipped out. If `soft` is True, the client will only reference to that commit and can be reset to the newest commit when done.\n\n        Raises\n        ------\n        InterfaceError\n            if the client does not connect to a database\n\n        Notes\n        -----\n        The "remote" repo can live in the local database.\n\n        Parameters\n        ----------\n        commit: string\n            Commit id or path to the commit (if use_path is True), for instance \'234980523ffaf93\' or \'admin/database/local/commit/234980523ffaf93\'. If not provided, it will reset to the newest commit (useful when need to go back after a soft reset).\n        soft: bool\n            Flag indicating if the reset if soft, that is referencing to a previous commit instead of resetting to a previous commit in the backend and wipping newer commits.\n        use_path : bool\n            Wheather or not the commit given is an id or path. Default using id and use_path is False.\n\n        Examples\n        --------\n        >>> client = WOQLClient("https://127.0.0.1:6363/")\n        >>> client.reset(\'234980523ffaf93\')\n        >>> client.reset(\'admin/database/local/commit/234980523ffaf93\', use_path=True)\n        '
    self._check_connection()
    if soft:
        if use_path:
            self._ref = commit.split('/')[(- 1)]
        else:
            self._ref = commit
        return None
    else:
        self._ref = None
    if (commit is None):
        return None
    if use_path:
        commit_path = commit
    else:
        commit_path = f'{self.team}/{self.db}/{self.repo}/commit/{commit}'
    _finish_response(requests.post(self._reset_url(), headers={'user-agent': f'terminusdb-client-python/{__version__}'}, json={'commit_descriptor': commit_path}, auth=self._auth()))
Reset the current branch HEAD to the specified commit path. If `soft` is not True, it will be a hard reset, meaning reset to that commit in the backend and newer commit will be wipped out. If `soft` is True, the client will only reference to that commit and can be reset to the newest commit when done.

Raises
------
InterfaceError
    if the client does not connect to a database

Notes
-----
The "remote" repo can live in the local database.

Parameters
----------
commit: string
    Commit id or path to the commit (if use_path is True), for instance '234980523ffaf93' or 'admin/database/local/commit/234980523ffaf93'. If not provided, it will reset to the newest commit (useful when need to go back after a soft reset).
soft: bool
    Flag indicating if the reset if soft, that is referencing to a previous commit instead of resetting to a previous commit in the backend and wipping newer commits.
use_path : bool
    Wheather or not the commit given is an id or path. Default using id and use_path is False.

Examples
--------
>>> client = WOQLClient("https://127.0.0.1:6363/")
>>> client.reset('234980523ffaf93')
>>> client.reset('admin/database/local/commit/234980523ffaf93', use_path=True)
def reset(self, commit: Optional[str]=None, soft: bool=False, use_path: bool=False) -> None:
    'Reset the current branch HEAD to the specified commit path. If `soft` is not True, it will be a hard reset, meaning reset to that commit in the backend and newer commit will be wipped out. If `soft` is True, the client will only reference to that commit and can be reset to the newest commit when done.\n\n        Raises\n        ------\n        InterfaceError\n            if the client does not connect to a database\n\n        Notes\n        -----\n        The "remote" repo can live in the local database.\n\n        Parameters\n        ----------\n        commit: string\n            Commit id or path to the commit (if use_path is True), for instance \'234980523ffaf93\' or \'admin/database/local/commit/234980523ffaf93\'. If not provided, it will reset to the newest commit (useful when need to go back after a soft reset).\n        soft: bool\n            Flag indicating if the reset if soft, that is referencing to a previous commit instead of resetting to a previous commit in the backend and wipping newer commits.\n        use_path : bool\n            Wheather or not the commit given is an id or path. Default using id and use_path is False.\n\n        Examples\n        --------\n        >>> client = WOQLClient("https://127.0.0.1:6363/")\n        >>> client.reset(\'234980523ffaf93\')\n        >>> client.reset(\'admin/database/local/commit/234980523ffaf93\', use_path=True)\n        '
    self._check_connection()
    if soft:
        if use_path:
            self._ref = commit.split('/')[(- 1)]
        else:
            self._ref = commit
        return None
    else:
        self._ref = None
    if (commit is None):
        return None
    if use_path:
        commit_path = commit
    else:
        commit_path = f'{self.team}/{self.db}/{self.repo}/commit/{commit}'
    _finish_response(requests.post(self._reset_url(), headers={'user-agent': f'terminusdb-client-python/{__version__}'}, json={'commit_descriptor': commit_path}, auth=self._auth()))