---
title: "Leaves organization"
method: DELETE
path: "/organizations/{organization_id}/users/leave"
tags: ["users", "organizations"]
---

# Leaves organization

`DELETE /organizations/{organization_id}/users/leave`

## Request

- Base URL: `https://localhost:8080/api/v9`
- URL: `https://localhost:8080/api/v9/organizations/{organization_id}/users/leave`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/toggl/apis/toggl-api/docs/organizations/:organization_id/users/leave/delete.ts> (a function with typed inputs; its response is checked against the schema)

Leaves organization, effectively delete user account in org and delete organization if it is last user

## Path parameters

- `organization_id` integer, required

## Response `200`

Successful operation.

## Other responses

- `400`: Possible error messages:<ul><li>The user does not belong to the organization.</li><li>Cannot remove the paying user.</li><li>Cannot remove the organization owner.</li></ul>
- `403`: User does not have access to this resource.

---

[API](https://skmtc.dev/toggl/apis/toggl-api.md) - [All operations](https://skmtc.dev/toggl/apis/toggl-api/llms.txt) - [OpenAPI document](https://skmtc.dev/toggl/apis/toggl-api/revisions/3085aee16990?raw)
