code: def locked_delete(self):
          
          filters = {self.key_name: self.key_value}
          self.session.query(self.model_class).filter_by(**filters).delete()
docs: Delete credentials from the SQLAlchemy datastore.