Matthew Schwarz
Matthew Schwarz

Reputation: 125

Can't run scripts anymore due to Error 401: deleted_client The OAuth client was deleted

I linked my google apps script project to a project on GCP. Then I deleted the GCP because I didn't need it. Now, I can't run scripts inside my google apps script project.

enter image description here

First, I got this popup. Then, after clicking the first button I get to error message in my subject line.

Originally, I linked from google apps script to GCP from the Resources/Google Cloud Project option. There is no option to unlink...

How can unlink my Google Apps Script from my now-deleted GCP.

Upvotes: 0

Views: 291

Answers (1)

TheMaster
TheMaster

Reputation: 50501

As written in the documentation,

You can't switch a script project to use a default GCP project. Default GCP projects are deleted once the script project they were created for is set to use a standard GCP project.

You cannot unlink as the default project is deleted. You have to create a new GCP project and link to the new project, which will automatically unlink from it's old project.

Upvotes: 1

Related Questions