rm
Delete a file or directory on a Globus endpoint and wait for task completion. Supports recursive deletion and ignoring missing paths.
Instructions
Delete a file or directory and wait for completion.
Submits a delete task and blocks until it completes. Use this when you need to ensure deletion is finished before proceeding.
Args: endpoint_id: The UUID of the endpoint. path: Path to the file or directory to delete. recursive: If True, recursively delete directories. ignore_missing: If True, don't error if path doesn't exist. timeout: Maximum seconds to wait. If None, waits indefinitely.
Returns: Dict with task status after completion, including 'status' field.
Examples: rm("endpoint-uuid", "/scratch/temp_file.txt") rm("endpoint-uuid", "/scratch/old_dir", recursive=True) rm("endpoint-uuid", "/data/maybe_exists.txt", ignore_missing=True)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endpoint_id | Yes | ||
| path | Yes | ||
| recursive | No | ||
| ignore_missing | No | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||