def get(self): for i in Form.all(): print i.date, "deleted" i.delete() for i in Settings.all(): print i.date, "deleted" i.delete()