provider data_warehouse DELETE /api/environments/{environment_id}/data_warehouse/delete-org/
@utdk/posthog /api/environments/{environment_id}/data_warehouse/delete-org/
environments_data_warehouse_delete_org_destroy
Remove the organization's provisioning record after teardown, freeing its warehouse name. Called once the warehouse status reports `deleted`: deprovision tears the warehouse down, this removes the now-empty org row so the database_name can be reused. Restricted to organization admins.
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string

Try it

Authentication
Configure credentials for PostHog API
environmentsDataWarehouseDeleteOrgDestroy
DELETE/api/environments/{environment_id}/data_warehouse/delete-org/
Remove the organization's provisioning record after teardown, freeing its warehouse name. Called once the warehouse status reports `deleted`: deprovision tears the warehouse down, this removes the now-empty org row so the database_name can be reused. Restricted to organization admins.

Parameters

required

Deprecated. Use /api/projects/{project_id}/ instead.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.environmentsDataWarehouseDeleteOrgDestroy()