def remove_notifications(email_notification_ids=None):
 for email_id in email_notification_ids:
  NotificationDigest.remove(Q('_id', 'eq', email_id))

def remove_notifications ( email_notification_ids = None ) : for email_id in email_notification_ids : NotificationDigest . remove ( Q ( '_id' , 'eq' , email_id ) )
remove sent emails .