airflow.providers.microsoft.azure.operators.wasb_delete_blob

Module Contents

Classes

WasbDeleteBlobOperator

Deletes blob(s) on Azure Blob Storage.

class airflow.providers.microsoft.azure.operators.wasb_delete_blob.WasbDeleteBlobOperator(*, container_name, blob_name, wasb_conn_id='wasb_default', check_options=None, is_prefix=False, ignore_if_missing=False, **kwargs)[source]

Bases: airflow.models.BaseOperator

Deletes blob(s) on Azure Blob Storage.

Parameters
  • container_name (str) – Name of the container. (templated)

  • blob_name (str) – Name of the blob. (templated)

  • wasb_conn_id (str) – Reference to the wasb connection.

  • check_options (Any) – Optional keyword arguments that WasbHook.check_for_blob() takes.

  • is_prefix (bool) – If blob_name is a prefix, delete all files matching prefix.

  • ignore_if_missing (bool) – if True, then return success even if the blob does not exist.

template_fields: Sequence[str] = ('container_name', 'blob_name')[source]
execute(context)[source]

Derive when creating an operator.

Context is the same dictionary used as when rendering jinja templates.

Refer to get_template_context for more context.

Was this entry helpful?