> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> 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`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - 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 doesn't modify the products that reference it. The product's `brand.id` is left unchanged, becomes a dangling reference, and resolves to nothing on read which makes the product appear unbranded. To keep products on a different brand after deletion, reassign each product to the kept brand by calling [Update Product](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/products-v3/update-product.md) (or [Bulk Update Products](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/products-v3/bulk-update-products.md)) with `product.brand.id` set to the kept brand's `id` before calling Delete Brand. For the full reassign-then-delete pattern, see the [brands sample flows](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/brands-v3/sample-flows.md).

---

## REST API

### Schema

```
 Method: deleteBrand
 Description: Deletes a brand.  > **Note:** Deleting a brand doesn't modify the products that reference it. The product's `brand.id` is left unchanged, becomes a dangling reference, and resolves to nothing on read which makes the product appear unbranded. To keep products on a different brand after deletion, reassign each product to the kept brand by calling [Update Product](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/products-v3/update-product.md) (or [Bulk Update Products](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/products-v3/bulk-update-products.md)) with `product.brand.id` set to the kept brand's `id` before calling Delete Brand. For the full reassign-then-delete pattern, see the [brands sample flows](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/brands-v3/sample-flows.md).
 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: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.stores.brandsV3.deleteBrand(brandId)
 Description: Deletes a brand.  > **Note:** Deleting a brand doesn't modify the products that reference it. The product's `brand.id` is left unchanged, becomes a dangling reference, and resolves to nothing on read which makes the product appear unbranded. To keep products on a different brand after deletion, reassign each product to the kept brand by calling [Update Product](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/products-v3/update-product.md) (or [Bulk Update Products](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/products-v3/bulk-update-products.md)) with `product.brand.id` set to the kept brand's `id` before calling Delete Brand. For the full reassign-then-delete pattern, see the [brands sample flows](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/brands-v3/sample-flows.md).
 # 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 | validation: format GUID
 Return type: PROMISE<DeleteBrandResponse>
  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-managed)
Self-managed 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);
};
```

---