Skip to content

delete_prompt

Operation

delete_prompt

delete_prompt(request: DeletePromptInput | DeletePromptInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeletePromptInputDict]) -> DeletePromptOutput

Deletes a prompt or a version of it, depending on whether you include the promptVersion field or not. For more information, see Delete prompts from the Prompt management tool and Delete a version of a prompt from the Prompt management tool in the Amazon Bedrock User Guide.

Parameters:

Name Type Description Default
request DeletePromptInput | DeletePromptInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[DeletePromptInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
DeletePromptOutput

An instance of DeletePromptOutput.

delete_prompt async

delete_prompt(request: DeletePromptInput | DeletePromptInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeletePromptInputDict]) -> DeletePromptOutput

Deletes a prompt or a version of it, depending on whether you include the promptVersion field or not. For more information, see Delete prompts from the Prompt management tool and Delete a version of a prompt from the Prompt management tool in the Amazon Bedrock User Guide.

Parameters:

Name Type Description Default
request DeletePromptInput | DeletePromptInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[DeletePromptInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
DeletePromptOutput

An instance of DeletePromptOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

DeletePromptInputDict

Bases: TypedDict

Dictionary form of DeletePromptInput.

Attributes

prompt_identifier instance-attribute
prompt_identifier: Required[str]

The unique identifier of the prompt.

prompt_version instance-attribute
prompt_version: str | None

The version of the prompt to delete. To delete the prompt, omit this field.

DeletePromptInput dataclass

Bases: _SerdeShape

Dataclass for DeletePromptInput structure.

Attributes

prompt_identifier class-attribute instance-attribute
prompt_identifier: str | None = ...

The unique identifier of the prompt.

prompt_version class-attribute instance-attribute
prompt_version: str | None = ...

The version of the prompt to delete. To delete the prompt, omit this field.

Output

DeletePromptOutput dataclass

Bases: _SerdeShape

Dataclass for DeletePromptOutput structure.

Attributes

id instance-attribute
id: str

The unique identifier of the prompt that was deleted.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.

version class-attribute instance-attribute
version: str | None = ...

The version of the prompt that was deleted.