When deleting a page (rare occurence I know), it should not only remove the [] around the in-diagram link, but if it is a link in a diagram, it should remove the whole line containing the link. Otherwise, the diagram will be broken afterwards (and it is unlikely that they will be controlled if the option for automatic unlinking was checked.