Skip to content
Ona Docs

DeleteOrganization

organizations.delete(OrganizationDeleteParams**kwargs) -> object
POST/gitpod.v1.OrganizationService/DeleteOrganization

Permanently deletes an organization.

Use this method to:

  • Remove unused organizations
  • Clean up test organizations
  • Complete organization migration

Examples

  • Delete organization:

    Permanently removes an organization and all its data.

    organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
ParametersExpand Collapse
organization_id: str

organization_id is the ID of the organization to delete

formatuuid
ReturnsExpand Collapse
object

DeleteOrganization

import os
from gitpod import Gitpod

client = Gitpod(
    bearer_token=os.environ.get("GITPOD_API_KEY"),  # This is the default and can be omitted
)
organization = client.organizations.delete(
    organization_id="b0e12f6c-4c67-429d-a4a6-d9838b5da047",
)
print(organization)
{}
Returns Examples
{}