use of com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest in project java-dialogflow by googleapis.
the class CreateDocumentTest method tearDown.
@After
public void tearDown() throws IOException {
// Delete the created knowledge base
try (KnowledgeBasesClient client = KnowledgeBasesClient.create()) {
DeleteKnowledgeBaseRequest request = DeleteKnowledgeBaseRequest.newBuilder().setName(knowledgeBaseName).setForce(true).build();
client.deleteKnowledgeBase(request);
}
System.setOut(null);
}
use of com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest in project java-dialogflow by googleapis.
the class CreateKnowledgeBaseTest method tearDown.
@After
public void tearDown() throws IOException {
if (knowledgeBaseName == null) {
return;
}
// Delete the created knowledge base
try (KnowledgeBasesClient client = KnowledgeBasesClient.create()) {
DeleteKnowledgeBaseRequest request = DeleteKnowledgeBaseRequest.newBuilder().setName(knowledgeBaseName).setForce(true).build();
client.deleteKnowledgeBase(request);
}
System.setOut(originalOutputStream);
}
Aggregations