public function deleteAction(Node $node)
{
if ($this->request->getHttpRequest()->isMethodSafe() === false) {
$this->persistenceManager->persistAll();
}
$q = new FlowQuery(array($node));
$node->remove();
$closestDocumentNode = $q->closest('[instanceof Neos.Neos:Document]')->get(0);
$nextUri = $this->uriBuilder->reset()->setFormat('html')->setCreateAbsoluteUri(true)->uriFor('show', array('node' => $closestDocumentNode), 'Frontend\\Node', 'Neos.Neos');
$this->view->assign('value', array('data' => array('nextUri' => $nextUri), 'success' => true));
}