public function removeReference(ViewReference $viewReference)
    {
        $referenceId = $viewReference->getId();
        if ($url = $this->repository->findValueForId('url', $referenceId)) {
            // Remove url
            $this->manager->removeUrl($url, $viewReference->getLocale());
        }
        // Remove reference
        $this->manager->remove($referenceId);
    }