---
title: "LeaveOrganization"
method: POST
path: "/gitpod.v1.OrganizationService/LeaveOrganization"
tags: ["gitpod.v1.OrganizationService"]
---

# LeaveOrganization

`POST /gitpod.v1.OrganizationService/LeaveOrganization`

Removes a user from an organization while preserving organization data.

 Use this method to:
 - Remove yourself from an organization
 - Clean up inactive memberships
 - Transfer project ownership before leaving
 - Manage team transitions

 ### Examples

 - Leave organization:

   Removes user from organization membership.

   ```yaml
   userId: "f53d2330-3795-4c5d-a1f3-453121af9c60"
   ```

 Note: Ensure all projects and resources are transferred before leaving.

## Request body

- GitpodV1LeaveOrganizationRequest
  - `userId` string, uuid, required

## Response `200`

Success

- GitpodV1LeaveOrganizationResponse

## Other responses

- `default` — Error

---

[API](https://skmtc.net/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.net/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/revisions/44d50c2ac284/schema)
