Seek legal counsel immediately! Allowing the ex-wife to stay after COE is a mistake and may establish tenancy rights. Do not be penny wise and pound foolish regarding this situation, emotions may override logic and you might own a home where you have to go through the process of evicting the ex-wife.
This doc might come in handy as well:
Best Regards, Steve