amoghrajesh commented on code in PR #59874:
URL: https://github.com/apache/airflow/pull/59874#discussion_r2650260735


##########
airflow-core/src/airflow/api_fastapi/execution_api/routes/xcoms.py:
##########
@@ -424,14 +424,27 @@ def delete_xcom(
     key: Annotated[str, Path(min_length=1)],
     map_index: Annotated[int, Query()] = -1,
 ):
-    """Delete a single XCom Value."""
+    """
+    Delete XCom entry(ies).
+
+    This endpoint allows specifying `~` as the task_id or key to enable bulk 
deletion.

Review Comment:
   I do not think this is intuitive at all. It is possible to have a key / 
value as "~", which makes it confusing as well. Not passing any parameters to 
`XCom.delete()` would likely be a better way to do this.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to