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'])
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"endpoint_id": "<endpoint_id>",
"path": "<path>"
},
"name": "delete"
}
}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 | |||