#NEWLINE# def delete_anomaly( self , anomaly ) : #NEWLINE# #INDENT# 'Deletes an anomaly detector.\n\n        ' #NEWLINE# check_resource_type ( anomaly , ANOMALY_PATH , message = 'An anomaly detector id is needed.' ) #NEWLINE# anomaly_id = get_anomaly_id ( anomaly ) #NEWLINE# if anomaly_id : #NEWLINE# #INDENT# return self . _delete ( ( '%s%s' % ( self . url , anomaly_id ) ) )