Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How do I delete all conversations in the Dialogflow history?

Hello, I know that you can delete conversations through the Dialogflow ES user interface, as described here: https://cloud.google.com/dialogflow/es/docs/history. However, it's only possible to delete individual conversations. I would like to delete all conversations. Is there a way to accomplish this via API?

Thanks for your help

Solved Solved
0 1 884
1 ACCEPTED SOLUTION

According to the current API[1], bulk delete is not supported. Meanwhile, there is already a feature request filed for this case scenario. But, you can try these alternative steps to delete conversation history in your Dialogflow:

1. Backup your Dialogflow agent by exporting it.
2. Delete your agent.
3. Restore your backup agent in the same project.
4. Disable interaction logs in agent settings.

Note: Disabling interaction logs will prevent logging of new logs and the deletion of agent can only affect the logs on the history page.

[1] https://cloud.google.com/dialogflow/priv/docs/insights/reference/rest/v1alpha1/projects.locations.co...

View solution in original post

1 REPLY 1

According to the current API[1], bulk delete is not supported. Meanwhile, there is already a feature request filed for this case scenario. But, you can try these alternative steps to delete conversation history in your Dialogflow:

1. Backup your Dialogflow agent by exporting it.
2. Delete your agent.
3. Restore your backup agent in the same project.
4. Disable interaction logs in agent settings.

Note: Disabling interaction logs will prevent logging of new logs and the deletion of agent can only affect the logs on the history page.

[1] https://cloud.google.com/dialogflow/priv/docs/insights/reference/rest/v1alpha1/projects.locations.co...