code: def delete_organization(db, organization):
      
      with db.connect() as session:
          org = find_organization(session, organization)
  
          if not org:
              raise NotFoundError(entity=organization)
  
          delete_organization_db(session, org)
docs: Remove an organization from the registry.
  
      This function removes the given organization from the registry.
      Related information such as domains or enrollments are also removed.
      It checks first whether the organization is already on the registry.
      When it is found, the organization is removed. Otherwise,
      it will raise a 'NotFoundError'.
  
      :param db: database manager
      :param organization: name of the organization to remove
  
      :raises NotFoundError: raised when the organization does not exist
          in the registry.