> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kasoftware.com/llms.txt
> Use this file to discover all available pages before exploring further.

# fileDelete

> 删除指定文件并返回操作是否成功。

删除文件或目录。

## 必需的参数

* **file**: 要删除的文件（包括文件名）或目录的路径。

## 输出属性

* **file:file**: 已删除的文件（包括文件名）或目录的路径。

## 示例

```xml theme={null}
<!-- Creating the input item with the full path to the file to be deleted --> 
<arc:set attr="input.file" value="/tmp/myfiles/deleteme.txt"/>

<!-- Calling fileDelete and passing in the input item -->
<arc:call op="fileDelete" in="input" out="result" >
  <!-- Optional: Logging information about the deleted file to the application log -->
  <arc:set attr="_log.info" value="The file [result.file:file] was deleted."/>  
</arc:call> 
```
