Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation
Theme

Delete an external storage configuration

client.admin.organization.externalStorage.delete(externalStorageID, options?): ExternalStorageDeleted { id, deleted, object }
DELETE
/organization/external_storage/{external_storage_id}

Disconnect a customer-managed external storage configuration. Removing the project’s last configuration restores organization-default retention if customer-managed retention was active. Repeating a deletion also completes any interrupted retention update. Cloud storage is unchanged.

Parameters
externalStorageID: string
Returns
ExternalStorageDeleted { id, deleted, object }
id: string
deleted: boolean
object: "organization.external_storage.deleted"

Delete an external storage configuration

import OpenAI from 'openai';

const client = new OpenAI({
  adminAPIKey: process.env['OPENAI_ADMIN_KEY'], // This is the default and can be omitted
});

const externalStorageDeleted = await client.admin.organization.externalStorage.delete(
  'extstorage_123',
);

console.log(externalStorageDeleted.id);
Response example
{
  "object": "organization.external_storage.deleted",
  "id": "extstorage_abc123",
  "deleted": true
}
Returns Examples
Response example
{
  "object": "organization.external_storage.deleted",
  "id": "extstorage_abc123",
  "deleted": true
}