pyspark.Broadcast.destroy

Broadcast.destroy(blocking: bool = False) → None

Destroy all data and metadata related to this broadcast variable. Use this with caution; once a broadcast variable has been destroyed, it cannot be used again.

Added optional argument blocking to specify whether to block until all blocks are deleted.

Parameters
blockingbool, optional

Whether to block until unpersisting has completed