Skip to content

Delete a container

client.containers.delete(stringcontainerID, RequestOptionsoptions?): void
DELETE/containers/{container_id}

Delete Container

ParametersExpand Collapse
containerID: string

Delete a container

import OpenAI from 'openai';

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

await client.containers.delete('container_id');
Returns Examples