code: def removeAnchor(self, anchor):
          
          if isinstance(anchor, int):
              index = anchor
          else:
              index = self._getAnchorIndex(anchor)
          index = normalizers.normalizeIndex(index)
          if index >= self._len__anchors():
              raise ValueError("No anchor located at index %d." % index)
          self._removeAnchor(index)
docs: Remove ``anchor`` from the glyph.
  
              >>> glyph.removeAnchor(anchor)
  
          ``anchor`` may be an :ref:`BaseAnchor` or an
          :ref:`type-int` representing an anchor index.