LoginSignup
8
3

More than 3 years have passed since last update.

Dialogflowのエージェントは削除済みだがプロジェクトが削除できない場合の対処法

Last updated at Posted at 2020-11-14

事象

GCPプロジェクトをシャットダウンする際に以下のエラーが発生する。

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/<エージェントID>/

リンクに記載されたエージェントはすでに削除済みであり、対処にドハマリしました。
誰かの助けになればと思い、記事にします。

原因

Dialogflowのエージェントを作成した際に、プロジェクトの偶発的な削除を目的とした「リーエン」なるものが適応されていた模様。
リーエンとは(Google公式ドキュメント)

対処法

  1. (前提) Dialogflowのエージェントは既に削除済みであること
  2. GCPのコンソールを開き、対象のプロジェクトを選択する
  3. 画面右上のimage.pngを押下し、CloudShellを表示
  4. gcloud alpha resource-manager liens listを実行。実行後、リーエンIDが表示される
  5. gcloud alpha resource-manager liens delete <リーエンID>を実行。

上記の作業完了後、プロジェクトのシャットダウンが可能となる。

8
3
1

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
8
3