public EntityResult deleteEntity ( String entityType , String uniqueAttributeName , String uniqueAttributeValue ) throws AtlasServiceException { LOG . debug ( "Deleting entity type: {}, attributeName: {}, attributeValue: {}" , entityType , uniqueAttributeName , uniqueAttributeValue ) ; API api = API . DELETE_ENTITY ; WebResource resource = getResource ( api ) ; resource = resource . queryParam ( TYPE , entityType ) ; resource = resource . queryParam ( ATTRIBUTE_NAME , uniqueAttributeName ) ; resource = resource . queryParam ( ATTRIBUTE_VALUE , uniqueAttributeValue ) ; JSONObject jsonResponse = callAPIWithResource ( API . DELETE_ENTITIES , resource ) ; EntityResult results = extractEntityResult ( jsonResponse ) ; LOG . debug ( "Delete entities returned results: {}" , results ) ; return results ; }
Supports Deletion of an entity identified by its unique attribute value