File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
test/IBM.WatsonDeveloperCloud.Discovery.v1.IntegrationTests Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -726,6 +726,20 @@ public void TestExpansions_Success()
726726 [ TestMethod ]
727727 public void TestTokenization_Success ( )
728728 {
729+ var collectionsList = ListCollections ( _environmentId ) ;
730+
731+ foreach ( Collection collection in collectionsList . Collections )
732+ {
733+ if ( ! string . IsNullOrEmpty ( collection . Description ) )
734+ {
735+ if ( collection . Description . Contains ( "safe to delete" ) )
736+ {
737+ DeleteCollection ( _environmentId , collection . CollectionId ) ;
738+ Console . WriteLine ( "deleted " + collection . CollectionId ) ;
739+ }
740+ }
741+ }
742+
729743 CreateCollectionRequest createCollectionRequest = new CreateCollectionRequest ( )
730744 {
731745 Language = CreateCollectionRequest . LanguageEnum . JA ,
You can’t perform that action at this time.
0 commit comments