This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Deletes a Business Profile listing from Google and removes it from the site.
This is the usual way to delete a location. To remove a location from the site while leaving the Google listing alone, call Delete Location.
Google refuses to delete some listings through its API, including verified or claimed listings, chain-managed locations, and suspended ones. Those have to be removed by the site owner at business.google.com.
Errors:
NOT_FOUND: the location isn't recorded for this site. Google isn't called.LOCATION_NOT_DELETABLE_VIA_API: Google won't allow the delete, for one of
the reasons above. The location is left in place. Note this is checked before
the delete, and Google's answer can change in between, so a delete can still
fail after the check passed.GOOGLE_API_CALL_FAILED: the call to Google failed. The location is left in
place so the call can be retried. If Google keeps refusing, remove the
listing at business.google.com and then call Delete Location.LOCATION_DB_PERSIST_FAILED: Google deleted the listing but the site's copy
couldn't be removed. Call Delete Location to finish the job.You can only call this method when authenticated as a Wix app or Wix user identity.
There is 1 error with this status code.
There are 2 errors with this status code.
This method may also return standard errors. Learn more about standard Wix errors.