#NEWLINE# def remove_metadata( self , name , version ) : #NEWLINE# #INDENT# '\n        Remove metadata, version, and (maybe) project.\n        ' #NEWLINE# project = Project ( self , name ) #NEWLINE# project_version = Version ( project , version ) #NEWLINE# project_version . remove_metadata ( ) #NEWLINE# project . remove_version ( version ) #NEWLINE# if ( project . num_versions ( ) == 0 ) : #NEWLINE# #INDENT# project . remove ( ) #NEWLINE# self . remove_project ( name )