def remove_repository(self, repository_id: str, state: str, delete_repo: bool=False):
    "Removes the repository in state 'state' and with id 'repository_id'\n        Args:\n            repository_id (str): The repository id\n            state (str): It must be either archived or imported otherwise it will return an error\n            delete_repo (bool): Whether or not the backup repository should be deleted\n        "
    if (not repository_id):
        _exit_if_errors(['--id is required'])
    if (not state):
        _exit_if_errors(['--state is required'])
    if (state not in ['archived', 'imported']):
        _exit_if_errors(['can only delete archived or imported repositories to delete an active repository it needs to be archived first'])
    if (delete_repo and (state == 'imported')):
        _exit_if_errors(['cannot delete the repository for an imported repository'])
    (_, errors) = self.rest.delete_backup_repository(repository_id, state, delete_repo)
    _exit_if_errors(errors)
    _success('Repository was deleted')
Removes the repository in state 'state' and with id 'repository_id'
Args:
    repository_id (str): The repository id
    state (str): It must be either archived or imported otherwise it will return an error
    delete_repo (bool): Whether or not the backup repository should be deleted
def remove_repository(self, repository_id: str, state: str, delete_repo: bool=False):
    "Removes the repository in state 'state' and with id 'repository_id'\n        Args:\n            repository_id (str): The repository id\n            state (str): It must be either archived or imported otherwise it will return an error\n            delete_repo (bool): Whether or not the backup repository should be deleted\n        "
    if (not repository_id):
        _exit_if_errors(['--id is required'])
    if (not state):
        _exit_if_errors(['--state is required'])
    if (state not in ['archived', 'imported']):
        _exit_if_errors(['can only delete archived or imported repositories to delete an active repository it needs to be archived first'])
    if (delete_repo and (state == 'imported')):
        _exit_if_errors(['cannot delete the repository for an imported repository'])
    (_, errors) = self.rest.delete_backup_repository(repository_id, state, delete_repo)
    _exit_if_errors(errors)
    _success('Repository was deleted')