/// <summary> /// Delete the collection from catalog /// </summary> /// <param name="domainID">Domain ID in which collection is present</param> /// <param name="collectionID">Collection ID to delete</param> public static void DeleteCollectionInCatalog(string domainID, string collectionID) { log.Debug("Domain ID {0}, col ID {1}", domainID, collectionID); Member member = Store.GetStore().GetDomain(domainID).GetCurrentMember(); HostNode hNode = GetHostNode(domainID, collectionID); if (hNode == null) { hNode = member.HomeServer; } try { log.Debug("DeleteCollectionInCatalog called from client"); DiscoveryService dService = new DiscoveryService(); SimiasConnection smConn = new SimiasConnection(domainID, member.UserID, SimiasConnection.AuthType.BASIC, hNode); smConn.InitializeWebClient(dService, "DiscoveryService.asmx"); dService.DeleteCollectionInCatalog(collectionID); } catch (Exception ex) { log.Error(ex.Message); } return; }