> 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

# Disconnect

# Package: socialMedia

# Namespace: AccountService

# Method link: https://dev.wix.com/docs/api-reference/business-management/marketing/social-media/account-v1/disconnect.md

## Permission Scopes:
Manage Social Posts: SCOPE.PROMOTE.MANAGE-SOCIAL-POSTS

## Introduction

Disconnects a social channel account from the site.

After disconnecting, the channel can't publish until it's reconnected. To reconnect, call Get Connect Url.

---

## REST API

### Schema

```
 Method: disconnect
 Description: Disconnects a social channel account from the site.  After disconnecting, the channel can't publish until it's reconnected. To reconnect, call Get Connect Url.
 URL: https://www.wixapis.com/social-publisher/v1/{channelName}/account
 Method: DELETE
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  channelName
 Method parameters: 
   param name: channelName | type:   none | required: true 
 Return type: DisconnectResponse
  EMPTY-OBJECT {}


```

### Examples

### Disconnect a channel
Disconnect a social channel from the site. After disconnecting, the channel can't publish until it's reconnected.

```curl
curl -X DELETE \
'https://www.wixapis.com/social-publisher/v1/INSTAGRAM/account' \
-H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.promoteGrowthToolsPublisher.accounts.disconnect(channelName)
 Description: Disconnects a social channel account from the site.  After disconnecting, the channel can't publish until it's reconnected. To reconnect, call Get Connect Url.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  channelName
 Method parameters: 
   param name: channelName | type: ChannelName | description: Supported social channel. | required: true 
      - enum:
           INSTAGRAM - 
           FACEBOOK - 
           YOUTUBE - 
           LINKEDIN - 
           TWITTER - Deprecated: No longer functional as of July 31, 2026.
           PINTEREST - 
           GBP - Google Business Profile.
           TIKTOK - 
 Return type: PROMISE<DisconnectResponse>
  EMPTY-OBJECT {}


```

### Examples

### Disconnect a channel
```javascript
import { accounts } from "@wix/promote-growth-tools-publisher";

const options = {
  channelName: "INSTAGRAM",
};

async function disconnect() {
  const response = await accounts.disconnect(options);
}

```

### disconnect (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 { accounts } from '@wix/promote-growth-tools-publisher';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { accounts },
  // Include the auth strategy and host as relevant
});


async function disconnect(channelName) {
  const response = await myWixClient.accounts.disconnect(channelName);
};
```

---