Skip to content

Bedrock Agent  >  Operations  >  delete_flow_version

delete_flow_version

Operation

delete_flow_version async

delete_flow_version(input: DeleteFlowVersionInput, plugins: list[Plugin] | None = None) -> DeleteFlowVersionOutput

Deletes a version of a flow.

Parameters:

Name Type Description Default
input DeleteFlowVersionInput

An instance of DeleteFlowVersionInput.

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
DeleteFlowVersionOutput

An instance of DeleteFlowVersionOutput.

Input

DeleteFlowVersionInput dataclass

Dataclass for DeleteFlowVersionInput structure.

Attributes

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

The unique identifier of the flow whose version that you want to delete

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

The version of the flow that you want to delete.

skip_resource_in_use_check class-attribute instance-attribute
skip_resource_in_use_check: bool = False

By default, this value is false and deletion is stopped if the resource is in use. If you set it to true, the resource will be deleted even if the resource is in use.

Output

DeleteFlowVersionOutput dataclass

Dataclass for DeleteFlowVersionOutput structure.

Attributes

id instance-attribute
id: str

The unique identifier of the flow.

version instance-attribute
version: str

The version of the flow being deleted.