> ## Documentation Index
> Fetch the complete documentation index at: https://stytch.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Revoke Sessions for Member

> Revoke all sessions for a Member using the Stytch Next.js SDK

export const action_0 = "revoke-sessions";

export const resource_0 = "stytch.member";

Wraps the [Revoke Session](/api-reference/b2b/api/sessions/revoke-session) endpoint to revoke all sessions for a specific member.

<Note>
  **RBAC Enforced Method**

  This method requires a valid Session for a member with permission to perform the **{action_0} Action** on the **{resource_0} Resource**.

  Before using this method, enable **Member actions & organization modifications** in the [Frontend SDK page](https://stytch.com/dashboard/sdk-configuration). To learn more, see our [RBAC guide](/multi-tenant-auth/enterprise-ready/rbac/create-rbac-policy).
</Note>

### Parameters

<ParamField path="options" type="object" required>
  <Expandable title="properties">
    <ParamField path="member_id" type="string" required>
      The unique ID of the member whose sessions you want to revoke.
    </ParamField>
  </Expandable>
</ParamField>

### Response

<ResponseField name="status_code" type="number">
  The HTTP status code of the response. Stytch follows standard HTTP response status code patterns, e.g. 2XX values
  equate to success, 3XX values are redirects, 4XX are client errors, and 5XX are server errors.
</ResponseField>

<ResponseField name="request_id" type="string">
  Globally unique UUID that is returned with every API call. This value is important to log for debugging purposes; we
  may ask for this value to help identify a specific API call when helping you debug an issue.
</ResponseField>

<Panel>
  <RequestExample>
    ```jsx theme={null}
    import { useStytchB2BClient } from '@stytch/nextjs/b2b';

    export const LogOutButton = () => {
      const stytch = useStytchB2BClient();

      const logout = () => {
        stytch.session.revokeSessionsForMember({ member_id: "member-id" });
      };

      return <button onClick={logout}>Log member out</button>;
    };
    ```
  </RequestExample>
</Panel>
