function(string $id_note)
{
if ($this->note->exists($id_note)) {
if ($this->note->getUrl($id_note)) {
$this->removeUrl($id_note);
}
foreach ($this->note->getAliases($id_note) as $id_alias) {
if ($this->note->getUrl($id_alias)) {
$this->removeUrl($id_alias);
}
}
foreach ($this->note->getChildren($id_note) as $id_child) {
if ($this->note->getUrl($id_child)) {
$this->removeUrl($id_child);
}
}
if (!empty($this->note->remove($id_note))) {
$this->cacheDelete($id_note);
return true;
}
}
return false;
}