#NEWLINE# def remove_version( self , name , version ) : #NEWLINE# #INDENT# '\n        Remove redis and file data for project version.\n        ' #NEWLINE# self . logger . info ( 'Removing version: {} {}' . format ( name , version ) ) #NEWLINE# metadata = self . projects . get_metadata ( name , version ) #NEWLINE# if ( metadata is None ) : #NEWLINE# #INDENT# self . logger . info ( 'Version not found: {} {}' . format ( name , version ) ) #NEWLINE# raise NotFoundError ( ) #NEWLINE# #UNINDENT# self . storage . remove ( metadata [ Version . FILENAME ] ) #NEWLINE# self . projects . remove_metadata ( name , version ) #NEWLINE# self . history . remove ( name , version )