LoginSignup
15
8

More than 3 years have passed since last update.

Dialogflowで使用したプロジェクトの削除方法

Last updated at Posted at 2020-08-31

問題点

Dialogflowで使用したプロジェクトが削除できない。シャットダウンしようとすると、以下のエラーが出て、Dialogflowにリンクされるものの、該当プロジェクトのDialogflowのAgentは既に削除済。

Google Cloud consoleのエラー

プロジェクト「xxxxxxxxxxx」を削除できません
プロジェクト「xxxxxxxxxxx」には、誤って削除されるのを防ぐために 1 つ以上リーエンが含まれています。プロジェクトを削除するには、リーエンを削除してから、もう一度お試しください。 詳細

リーエンの原点
You cannot delete this project because it is linked with a Dialogflow agent. >Please follow the link to Dialogflow and delete the agent: >https://console.dialogflow.com/api-client/#/agent/xxxxxxxxxxx

説明
Deletion blocked by Dialogflow. リーエンを削除

リンク先のDialogfliowのエラー

  • Agent not found.
  • IAM permission 'dialogflow.agents.get' on 'projects/xxxxxxxxxxx' denied.

解決策

プロジェクトに適用されているリーエンを一覧表示する。

gcloud alpha resource-manager liens list

リーエンをプロジェクトから削除する。

gcloud alpha resource-manager liens delete xxxxxx

もう一度、Google Cloud consoleでシャットダウンを実施すると、無事削除(1ヵ月後に削除)になった。

参考

15
8
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
15
8