How to delete Dialogflow agent if it is not listed?

Viacheslav Kharchenko
2 min readApr 20, 2023

If you are trying to delete the Google Cloud project, and seeing the error which says you already have an active Dialogflow agent, you will also have a link to this agent:

But, when you follow the link, you just see the home page of Dialogflow with the message that you don’t have any agents:

Here is an instruction on how to delete the agent:

  1. Go to the Google Cloud Shell. Make sure you selected the right project at the upper left corner of the page.
  2. Type in gcloud config set project id with id of your project instead of id. To get the id, click on the name of the project in the upper left corner and find the id in the “ID” column of the table.
  3. Run gcloud alpha resource-manager liens list in the G Cloud Shell. You will see the message with the following first line: “NAME: id” with the id of the lien to delete.
  4. Type in gcloud alpha resource-manager liens delete id and replace the id with the lien’s id from the previous step. You should see the message “Deleted”.

Now the Dialogflow agent is deleted and you can completely delete the Google Cloud project.