So, you have a shape that may have a variable number of connection points (SmartShape) or an existing shape which may need fewer active connection points. What to do??? There's no known way to hide them. There's no shapesheet mechanism to remove/add them. The following seems to be a reliable method to disable them and prevent gluing under all but one condition...set the C-cell (not to be confused with sea shell) to a value greater than 2. In my example, I chose "9".
The caveat is that if the Connection Point row type is set to Named_Row, this doesn't work. Reasonable. If you go to the trouble of setting the row type, why would you disable it? That's rhetorical, don't answer.
Note, once one row type is set to Named_Row, ALL rows show their names. And, yes, Virginia, you may reset the row type back to regular, unnamed. But, each row may still be named! Cool. Only the D-Cell will be dysfunctional.