Delete an external storage configuration
ExternalStorageDeleted admin().organization().externalStorage().delete(ExternalStorageDeleteParamsparams = ExternalStorageDeleteParams.none() , RequestOptionsrequestOptions = RequestOptions.none() )
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
package com.openai.example;
import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.admin.organization.externalstorage.ExternalStorageDeleteParams;
import com.openai.models.admin.organization.externalstorage.ExternalStorageDeleted;
public final class Main {
private Main() {}
public static void main(String[] args) {
OpenAIClient client = OpenAIOkHttpClient.fromEnv();
ExternalStorageDeleted externalStorageDeleted = client.admin().organization().externalStorage().delete("extstorage_123");
}
}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
}