My Business
2.2K members online now
2.2K members online now
For developers who are using the Google My Business API to manage locations
Guide Me
star_border
Reply

Error: It can only be deleted by deleting its +page.

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi all!

 

i am trying to delete a duplicate location over My Business API (v3 Java), but i am getting an error:

 

{

"code" : 400,
"message" : "Location accounts/XXXXX/locations/XXXXX has a Google+ page. It can only be deleted by deleting its +page.",
"status" : "FAILED_PRECONDITION"
}

 

So is there a way to delete this location? Because if i do it over the MyBusiness UI, it takes a lot of steps to finish/delete this location. Is there a workaround at the moment? or should i check the Google + API also?

 

Cheers, musti

1 Expert replyverified_user

Re: Error: It can only be deleted by deleting its +page.

Google Employee
# 2
Google Employee

Hi @Mustafa K,

 

Only a non-verified location without an associated Google+ page, as indicated by a plusPageId in the LocationKey, can be deleted via the Google My Business API. The canDelete boolean field in the LocationState object indicates whether the location can be deleted using the Google My Business UI. Please use the Google My Business UI to delete a location that has an associated Google+ page.

 

Thanks,

Terry

Re: Error: It can only be deleted by deleting its +page.

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Hi Terry,

Thanks for the info. It is such a pitty that we can't delete locations over MyBusiness API. So mouse and click training ahead.

Thanks!
Cheers, musti