def METHOD_NAME(self, client, domain):
    repos = []
    paginator = client.get_paginator('list_repositories_in_domain')
    paginator.PAGE_ITERATOR_CLS = RetryPageIterator
    try:
        results = paginator.paginate(domain=domain['name'])
        repos.extend(results.build_full_result().get('repositories'))
    except client.exceptions.ResourceNotFoundException:
        return False
    for r in repos:
        self.manager.retry(
            client.delete_repository,
            domain=domain['name'],
            repository=r['name'],
            ignore_err_codes=('ResourceNotFoundException',))