awswrangler.athena.delete_prepared_statement¶
- awswrangler.athena.delete_prepared_statement(statement_name: str, workgroup: str = 'primary', boto3_session: Session | None = None) None ¶
Delete the prepared statement with the specified name from the specified workgroup.
https://docs.aws.amazon.com/athena/latest/ug/sql-deallocate-prepare.html
Note
This function has arguments which can be configured globally through wr.config or environment variables:
workgroup
Check out the Global Configurations Tutorial for details.
- Parameters:
statement_name (
str
) – The name of the prepared statement.workgroup (
str
) – The name of the workgroup to which the prepared statement belongs. Primary by default.boto3_session (
Session
|None
) – The default boto3 session will be used if boto3_session receiveNone
.
- Return type:
None
Examples
>>> import awswrangler as wr >>> wr.athena.delete_prepared_statement( ... statement_name="statement", ... )