> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/authentication/llms.txt)
> Source: https://docs.saleor.io/api-reference/authentication/mutations/external-logout

# externalLogout Mutation

Logout user by custom plugin.

```graphql
externalLogout(
  input: JSONString!
  pluginId: String!
): ExternalLogout
```

Details

```graphql
type ExternalLogout {
  logoutData: JSONString
  accountErrors: [AccountError!]! @deprecated
  errors: [AccountError!]!
}
```

<a id="arguments"></a>

### Arguments

<a id="input"></a>

#### [`input`](#input) ● [`JSONString!`](/api-reference/miscellaneous/scalars/jsonstring.md)

The data required by plugin to proceed the logout process.

<a id="plugin-id"></a>

#### [`pluginId`](#plugin-id) ● [`String!`](/api-reference/miscellaneous/scalars/string.md)

The ID of the authentication plugin.

<a id="type"></a>

### Type

<a id="externallogout"></a>

#### [`ExternalLogout`](/api-reference/authentication/objects/external-logout.md)

Logout user by custom plugin.
