Search.../
  1. Home
  2. Getting Started
  3. Overview
Generate a test token to explore our APIs

Remove Product Media

Removes specified media items from a product. Pass an empty array to remove all media items.

Authorization

This endpoint requires an authorization header - pass the access token from the OAuth installation flow.

Permissions

This endpoint requires the Manage Products permission scope.

POST

https://www.wixapis.com/stores/v1/products/{id}/media/delete

Path Params

NAME
TYPE
DESCRIPTION
id
Required

string

Product ID.

Body Params

NAME
TYPE
DESCRIPTION
mediaIds

Array<string>

List of media IDs to remove. Pass an empty array to delete all media items for the product.

Response Object

Returns an empty object.

Status/Error Codes

The response will include an HTTP status code.

Was this helpful?

Request

curl

Copy Code
1curl -X POST \
2 'https://www.wixapis.com/stores/v1/products/1044e7e4-37d1-0705-c5b3-623baae212fd/media/delete' \
3 --data-binary '{
4 "mediaIds": [
5 "mediaId1",
6 "mediaId2"
7 ]
8 }' \
9 -H 'Content-Type: application/json' \
10 -H 'Authorization: <AUTH>'

Response

json

1
2{}