DELETE

Delete Media


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Deletes a media item from a location.

Specify the media key from List Media. Deleting an item that's already gone succeeds, so it's safe to retry.

Deletions draw on the same budget of about 10 edits per minute per Business Profile as every other write to it, including Create Media, Update Google Location and Update Location Attributes. Removing a set of images in quick succession returns 429, so pace the profile as a whole.

Errors:

  • NOT_FOUND: the location isn't recorded for this site. Google isn't called.
  • GOOGLE_API_CALL_FAILED: the call to Google failed. Google's status and response are in the error payload.

A malformed media key, or one belonging to a different location, also comes back as GOOGLE_API_CALL_FAILED rather than NOT_FOUND.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage SEO Settings
Learn more about app permissions.
Endpoint
DELETE
https://www.wixapis.com/gbp/v1/locations/{locationId}/media/{mediaKey}

Errors
500Internal

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?