diff --git a/yunohost_domain.py b/yunohost_domain.py index 180a03df..5c45b3af 100644 --- a/yunohost_domain.py +++ b/yunohost_domain.py @@ -203,6 +203,8 @@ def domain_remove(domains): try: shutil.rmtree('/etc/yunohost/certs/'+ domain) os.remove('/var/lib/bind/'+ domain +'.zone') + shutil.rmtree('/var/lib/metronome/'+ domain.replace('.', '%2e')) + os.remove('/etc/metronome/conf.d/'+ domain +'.cfg.lua') except: pass with open('/etc/bind/named.conf.local', 'r') as conf: