When changing the name and primary interface of a host, old DNS records are not cleaned

Problem:
When changing the DNS name and Primary interface of a host, old DNS records are not removed.
Expected outcome:
Old DNS records are removed when no longer valid.
Foreman and Proxy versions:
Foreman: 1.21.0
Foreman-Proxy: 1.21.0