code: def delete(self, cls, rid, user='undefined'):
          
          self.validate_record_type(cls)
          deletedcount = self.db.delete(cls, {ID: rid})
          if deletedcount < 1:
              raise KeyError('No record {}/{}'.format(cls, rid))
docs: Delete a record by id.
  
          `user` currently unused. Would be used with soft deletes.
  
          >>> s = teststore()
          >>> s.create('tstoretest', {'id': '1', 'name': 'Toto'})
          >>> len(s.list('tstoretest'))
          1
          >>> s.delete('tstoretest', '1')
          >>> len(s.list('tstoretest'))
          0
          >>> s.delete('tstoretest', '1')
          Traceback (most recent call last):
              ...
          KeyError: 'No record tstoretest/1'