> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # DeleteBrand # Package: catalogV3 # Namespace: BrandService # Method link: https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/brands-v3/delete-brand.md ## Permission Scopes: Brand write in v3 catalog: SCOPE.STORES.BRAND_WRITE ## Introduction Deletes a brand. > **Note:** Deleting a brand will also remove it from all products it is assigned to. --- ## REST API ### Schema ``` Method: deleteBrand Description: Deletes a brand. > **Note:** Deleting a brand will also remove it from all products it is assigned to. URL: https://www.wixapis.com/stores/v3/brands/{brandId} Method: DELETE # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: brandId Method parameters: param name: brandId | type: none | required: true Return type: DeleteBrandResponse EMPTY-OBJECT {} ``` ### Examples ### Delete Brand Delete brand by ID. ```curl curl -X DELETE \ 'https://www.wixapis.com/stores/v3/brands/9b1eee8a-2171-455b-807f-1c1e6aa5553b' \ -H 'Content-Type: application/json' \ -H 'Authorization: ' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.catalogV3.BrandService.deleteBrand(brandId) Description: Deletes a brand. > **Note:** Deleting a brand will also remove it from all products it is assigned to. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: brandId Method parameters: param name: brandId | type: string | description: Brand GUID. | required: true Return type: PROMISE EMPTY-OBJECT {} ``` ### Examples ### deleteBrand ```javascript import { brandsV3 } from '@wix/stores'; async function deleteBrand(brandId) { const response = await brandsV3.deleteBrand(brandId); }; ``` ### deleteBrand (with elevated permissions) ```javascript import { brandsV3 } from '@wix/stores'; import { auth } from '@wix/essentials'; async function myDeleteBrandMethod(brandId) { const elevatedDeleteBrand = auth.elevate(brandsV3.deleteBrand); const response = await elevatedDeleteBrand(brandId); } ``` ### deleteBrand (self-hosted) Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md). ```javascript import { createClient } from '@wix/sdk'; import { brandsV3 } from '@wix/stores'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { brandsV3 }, // Include the auth strategy and host as relevant }); async function deleteBrand(brandId) { const response = await myWixClient.brandsV3.deleteBrand(brandId); }; ``` ---