# OAuth:Disconnect_Form

Renders a form that disconnects an OAuth provider from the current user's account.

## Overview

The `oauth:disconnect_form` tag renders a form to disconnect an OAuth provider from the current user's account. It's typically used inside an [`{{ oauth }}`](/tags/oauth.md) loop.

::tabs

::tab antlers
```antlers
{{ oauth }}
    {{ if connected }}
        {{ oauth:disconnect_form :provider="name" }}
            <button type="submit">Disconnect {{ label }}</button>
        {{ /oauth:disconnect_form }}
    {{ /if }}
{{ /oauth }}
```
::tab blade
```blade
<s:oauth>
    @if ($connected)
        <s:oauth:disconnect_form :provider="$name">
            <button type="submit">Disconnect {{ $label }}</button>
        </s:oauth:disconnect_form>
    @endif
</s:oauth>
```
::

Disconnecting requires an elevated session. If the user doesn't have one, they'll be redirected to do so before being sent back to complete the disconnect.
