dom/src/main/java/org/incode/module/note/dom/impl/note/NoteRepository.java
@Programmatic
    public void remove(Note note) {
        final NotableLink link = linkRepository.findByNote(note);
        repositoryService.removeAndFlush(link);
        repositoryService.removeAndFlush(note);
    }
@Programmatic
    public void remove(Note note) {
        final NotableLink link = linkRepository.findByNote(note);
        repositoryService.removeAndFlush(link);
        repositoryService.removeAndFlush(note);
    }
region > remove (programmatic)