Fixing force deletion of domain to correctly read apps from primary