remove_modal_volume_file
Delete files or directories from a Modal volume. Specify the volume name, remote path, and optional recursive flag for directory removal. Returns the outcome of the operation.
Instructions
Delete a file or directory from a Modal volume.
Args:
volume_name: Name of the Modal volume to delete from.
remote_path: Path to the file or directory to delete.
recursive: If True, delete directories recursively. Required for deleting directories.
Returns:
A dictionary containing the result of the delete operation.
Raises:
Exception: If the delete operation fails for any reason.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
recursive | No | ||
remote_path | Yes | ||
volume_name | Yes |
Input Schema (JSON Schema)
{
"properties": {
"recursive": {
"default": false,
"title": "Recursive",
"type": "boolean"
},
"remote_path": {
"title": "Remote Path",
"type": "string"
},
"volume_name": {
"title": "Volume Name",
"type": "string"
}
},
"required": [
"volume_name",
"remote_path"
],
"title": "remove_modal_volume_fileArguments",
"type": "object"
}