def rmcache(sender, **kwargs):
inst = kwargs.get("instance")
if inst.domain.fqdn in sender.cache:
del sender.cache[inst.domain.fqdn][inst.location]