Search.../

removeBrand( )

Developer Preview

Deletes a product's brand.

Admin Method

This function requires elevated permissions to run. This function is not universal and runs only on the backend.

Authorization

Request

This endpoint does not take any parameters

Response Object

Returns an empty object.

Status/Error Codes

Was this helpful?

removeBrand example

Copy Code
1import { products } from 'wix-stores.v2';
2
3 async function removeBrand(id) {
4 try {
5 const result = await products.removeBrand(id);
6
7 return result;
8 } catch (error) {
9 console.error(error);
10 // Handle the error
11 }
12 }
13