Error when reinstating deleted domain

My YunoHost server

**Hardware:**Core i3 with 8 GB Ram
YunoHost version: x.x.x
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no - except the domain wiki.tld.com was deleted previously

I had a subdomain wiki.tld.com which I removed some time ago.

When I attempted to reinstall it the following error was returned:

Error: You are attempting to overwrite a good and valid certificate for domain wiki.tdl.com! (Use --force to bypass)

There is no --force parameter for

yunohost domain add wiki.tld.com

I do not know what to do next and would be very grateful for some help.
The log is available at

https://paste.yunohost.org/raw/aseyarariw

Thank you if you help me!!!

Well, I solved it by reading this topic:
https://github.com/YunoHost/issues/issues/1281

I removed all certificates related to domain wiki.tpl.com in /ec/yunohost/certs and tried the domain add command and it worked.

1 Like

Thank you! Saved me!

For those who want the short answer:

cd /etc/yunohost/certs
rm -rf subdomain.domain.com*
yunohost domain add subdomain.domain.com