question: @ Override public void deleteTrait ( String guid , String traitNameToBeDeleted ) throws AtlasException { guid = ParamChecker . notEmpty ( guid , "entity id" ) ; traitNameToBeDeleted = ParamChecker . notEmpty ( traitNameToBeDeleted , "trait name" ) ; if ( ! typeSystem . isRegistered ( traitNameToBeDeleted ) ) { final String msg = String . format ( "trait=%s should be defined in type system before it can be deleted" , traitNameToBeDeleted ) ; LOG . error ( msg ) ; throw new TypeNotFoundException ( msg ) ; } repository . deleteTrait ( guid , traitNameToBeDeleted ) ; onTraitDeletedFromEntity ( repository . getEntityDefinition ( guid ) , traitNameToBeDeleted ) ; }
target:  Deletes a given trait from an existing entity represented by a guid.