code: private void deleteAllTraits(AtlasVertex instanceVertex) throws AtlasBaseException {
          List<String> traitNames = GraphHelper.getTraitNames(instanceVertex);
          LOG.debug("Deleting traits {} for {}", traitNames, string(instanceVertex));
          String typeName = GraphHelper.getTypeName(instanceVertex);
  
          for (String traitNameToBeDeleted : traitNames) {
              String relationshipLabel = GraphHelper.getTraitLabel(typeName, traitNameToBeDeleted);
              deleteEdgeReference(instanceVertex, relationshipLabel, TypeCategory.CLASSIFICATION, false);
          }
      }
docs: Delete all traits from the specified vertex.
  @param instanceVertex
  @throws AtlasException