code: def delete_organization(session, organization):
      
      last_modified = datetime.datetime.utcnow()
  
      for enrollment in organization.enrollments:
          enrollment.uidentity.last_modified = last_modified
  
      session.delete(organization)
      session.flush()
docs: Remove an organization from the session.
  
      Function that removes from the session the organization
      given in `organization`. Data related such as domains
      or enrollments are also removed.
  
      :param session: database session
      :param organization: organization to remove