GitHub user amoghrajesh added a comment to the discussion: What is the right
way to clear XComs in Airlfow 3.0.0?
@O-Carneiro the right way would be to use `XCom.delete` function.
Example:
```
def delete_xcom():
from airflow.sdk.execution_time.xcom import XCom
XCom.delete(
key="return_value",
task_id="test_task",
dag_id="test_dag_from_modesl",
run_id="scheduled__2025-05-10T00:00:00+00:00",
)
```
GitHub link:
https://github.com/apache/airflow/discussions/50415#discussioncomment-13104844
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]