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
- Turbot/Owner or Turbot/Admin permissions at the Turbot resource level.
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.

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

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.

Step 3: Review
Guardrails begins the deletion process. The time required depends on how many resources and policy settings were associated with the organization.
- The
OpenAI > Config > Admin API KeyandOpenAI > Config > Organization Idpolicy settings have been removed. - The OpenAI organization no longer appears under Resources.
- No residual OpenAI projects, members, or API keys remain in the CMDB.
Troubleshooting
| Issue | Solution |
|---|---|
| Deletion errors | Errors 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 deletion | Discovery 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 assistance | Open a support ticket with error details, or join the #guardrails channel in the Turbot Community Slack. |