---
title: "RemoveOrgMember"
description: "Remove a member"
canonical: "https://pgbeam.com/docs/go-sdk/account/removeOrgMember"
last-updated: "2026-09-07T06:13:50.000Z"
---

# RemoveOrgMember

> Remove a member

URL: https://pgbeam.com/docs/go-sdk/account/removeOrgMember

Removes someone from the organization. An organization must keep at least one owner, so the last remaining owner cannot be removed and cannot be demoted either: transfer ownership first.

## Usage

## Parameters

Parameter

Type

Required

Description

ctx

`context.Context`

Yes

Request context

orgID

`string`

Yes

Unique organization identifier.

memberID

`string`

Yes

Unique organization membership identifier. Unlike the resources PgBeam mints itself, memberships carry no type prefix: the id is opaque and is assigned when the membership row is created. Read it from `listOrgMembers` rather than constructing it.

## Response

`error`: returns nil on success.

## Example

## Errors

Status

Description

400

Invalid request parameters.

401

Missing or invalid authentication.

403

Operation not allowed by current plan limits.

404

Resource not found.

409

Resource already exists or conflicts with current state.

429

Rate limited. Try again later.