def deleteNotification(self): notifications = Notification.getActiveByEmployeeId(10) print notifications for notification in notifications: if notification != None: Notification.delete(notification)