Skip to content
Get started

Delete

models.delete(strmodel_id, ModelDeleteParams**kwargs) -> object
DELETE/models/{modelId}

Delete a model

ParametersExpand Collapse
model_id: str
project_id: Optional[str]

The projectId used for ownership resource management. Either to assert ownership or to set the owner of the resource(s)

ReturnsExpand Collapse
object

Delete

import os
from scenario_sdk import Scenario

client = Scenario(
    api_key=os.environ.get("SCENARIO_SDK_API_KEY"),  # This is the default and can be omitted
    api_secret=os.environ.get("SCENARIO_SDK_API_SECRET"),  # This is the default and can be omitted
)
model = client.models.delete(
    model_id="modelId",
)
print(model)
{}
Returns Examples
{}