#NEWLINE# def delete( self , id = None ) : #NEWLINE# #INDENT# '\n        Delete a record from the database\n\n        :param id: The id of the row to delete\n        :type id: mixed\n\n        :return: The number of rows deleted\n        :rtype: int\n        ' #NEWLINE# if ( id is not None ) : #NEWLINE# #INDENT# self . where ( 'id' , '=' , id ) #NEWLINE# #UNINDENT# sql = self . _grammar . compile_delete ( sql ) #NEWLINE# return self . _connection . delete ( sql , self . get_bindings ( ) )