def remove_domain(domain, directory=None):
    homefolder = get_home()
    domaindir = directory or os.path.join(homefolder, ".calvin", "security", domain)
    configfile = os.path.join(domaindir, "openssl.conf")
    if os.path.isfile(configfile):
        shutil.rmtree(domaindir, ignore_errors=True)
:returns: comp_words, comp_cword
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/utilities/certificate.py/remove_domain--crossover with--dataset/ETHPy150Open dnanexus/dx-toolkit/src/python/test/test_dx_completion.py/split_line_like_bash