code: def delete(self, id):
          
  
          refs = self.db.execute(
              'SELECT * FROM comments WHERE parent=?', (id, )).fetchone()
  
          if refs is None:
              self.db.execute('DELETE FROM comments WHERE id=?', (id, ))
              self._remove_stale()
              return None
  
          self.db.execute('UPDATE comments SET text=? WHERE id=?', ('', id))
          self.db.execute('UPDATE comments SET mode=? WHERE id=?', (4, id))
          for field in ('author', 'website'):
              self.db.execute('UPDATE comments SET %s=? WHERE id=?' %
                              field, (None, id))
  
          self._remove_stale()
          return self.get(id)
docs: Delete a comment. There are two distinctions: a comment is referenced
          by another valid comment's parent attribute or stand-a-lone. In this
          case the comment can't be removed without losing depending comments.
          Hence, delete removes all visible data such as text, author, email,
          website sets the mode field to 4.
  
          In the second case this comment can be safely removed without any side
          effects.