Removing an OpenAI Organization

In this guide, you will safely remove an OpenAI organization from your Turbot Guardrails workspace. This deletes all associated CMDB records and policy settings from Guardrails but does not affect any resources in your actual OpenAI organization. No projects, members, or API keys are changed in OpenAI.

The removal has two phases: removing the Admin API key credential so discovery stops, then deleting the connection.

[!WARNING] Deleting the connection permanently removes all of its OpenAI CMDB records, policy settings, and control history from Guardrails. This cannot be undone.

Prerequisites

Step 1: Remove the Admin API Key Policy

Removing the credential first ensures Guardrails stops calling the OpenAI Admin API before the connection is deleted.

Navigate to the Policies page. Delete the policy settings on the target OpenAI Organization for OpenAI > Config > Admin API Key and OpenAI > Config > Organization Id. Also delete OpenAI > Config > Base URL if it was set to a non-default value.

Deleting the OpenAI Admin API Key policy setting on the Organization

Step 2: Delete the Connection

Navigate to the OpenAI Organization's page, select Actions in the top right corner, then select Remove from Turbot.

OpenAI Organization page with the Actions menu open showing the Remove from Turbot option

A confirmation dialog appears. Type the organization name to confirm, then select Delete to permanently remove the connection. Deletion cascades to every project, member, user, API key, service account, and invite discovered under the organization.

Delete confirmation dialog requiring the organization name to be typed

Step 3: Review

Guardrails begins the deletion process. The time required depends on how many resources and policy settings were associated with the organization.

Troubleshooting

IssueSolution
Deletion errorsErrors can occur from database locks or incomplete cleanup. Ensure the Admin API Key policy is removed before deleting the connection, then retry.
Resources reappear after deletionDiscovery is still running because a Config policy setting remains. Remove every OpenAI > Config policy setting on the organization and its parents, then delete again.
Further assistanceOpen a support ticket with error details, or join the #guardrails channel in the Turbot Community Slack.