Delete an external storage configuration
client.admin.organization.externalStorage.delete(stringexternalStorageID , RequestOptionsoptions ?): 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.
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
}