Skip to content

Delete a container

containers.delete(strcontainer_id)
DELETE/containers/{container_id}

Delete Container

ParametersExpand Collapse
container_id: str

Delete a container

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ.get("OPENAI_API_KEY"),  # This is the default and can be omitted
)
client.containers.delete(
    "container_id",
)
Returns Examples