delete
Submit an asynchronous delete request for files or directories on a Globus endpoint. Returns a task ID to monitor progress.
Instructions
Submit an async delete task.
Unlike rm, this returns immediately with a task_id. Use task_show
or task_wait to monitor progress.
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. label: Optional label for the task.
Returns: Dict with 'task_id' for the submitted delete task.
Examples: result = delete("endpoint-uuid", "/scratch/large_dir", recursive=True) task_wait(result['task_id'])
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endpoint_id | Yes | ||
| path | Yes | ||
| recursive | No | ||
| ignore_missing | No | ||
| label | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||