use toQuery on delete sync