This example shows how to delete a specific workflow history using the Temporal Python SDK
python3 -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`
pip install temporalio
Be sure you set up your Python Virtual Environment before running the worker
python main.py <namespace> <workflow_id> <run_id>
Be sure you set up your Python Virtual Environment before running the worker
# set up environment variables
export TEMPORAL_NAMESPACE=<namespace>.<accountId>
export TEMPORAL_ADDRESS=<namespace>.<accountId>.tmprl.cloud:7233
export TEMPORAL_TLS_CERT=/path/to/cert
export TEMPORAL_TLS_KEY=/path/to/key
# run the application
python main.py <namespace> <workflow_id> <run_id>