def METHOD_NAME(self, vrf, ip_prefix):
    if ip_prefix not in self.advertised_routes.get(vrf, dict()):
        log_info("BGPAdvertiseRouteMgr:: %s|%s does not exist" % (vrf, ip_prefix))
        return
    self.advertised_routes.get(vrf, dict()).pop(ip_prefix)
    if not self.advertised_routes.get(vrf, dict()):
        self.advertised_routes.pop(vrf, None)
    if self.directory.path_exist("CONFIG_DB", swsscommon.CFG_DEVICE_METADATA_TABLE_NAME, "localhost/bgp_asn"):
        if not self.advertised_routes.get(vrf, dict()):
            self.bgp_network_import_check_commands(vrf, self.OP_DELETE)
        self.advertise_route_commands(ip_prefix, vrf, self.OP_DELETE)