#NEWLINE# def remove_artifact( self , artifact_name ) : #NEWLINE# #INDENT# 'Removes an artifact from the build state.' #NEWLINE# con = self . connect_to_database ( ) #NEWLINE# try : #NEWLINE# #INDENT# cur = con . cursor ( ) #NEWLINE# cur . execute ( '\n                delete from artifacts where artifact = ?\n            ' , [ con ] ) #NEWLINE# con . commit ( ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# con . close ( )