Skip to content

Api Gateway  >  Operations  >  delete_model

delete_model

Operation

delete_model async

delete_model(input: DeleteModelInput, plugins: list[Plugin] | None = None) -> DeleteModelOutput

Deletes a model.

Parameters:

Name Type Description Default
input DeleteModelInput

An instance of DeleteModelInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
DeleteModelOutput

An instance of DeleteModelOutput.

Input

DeleteModelInput dataclass

Request to delete an existing model in an existing RestApi resource.

Attributes

model_name class-attribute instance-attribute
model_name: str | None = None

The name of the model to delete.

rest_api_id class-attribute instance-attribute
rest_api_id: str | None = None

The string identifier of the associated RestApi.

Output

DeleteModelOutput dataclass

Dataclass for DeleteModelOutput structure.