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

# fileDelete

> 指定されたパスにあるファイルまたはディレクトリを削除し、削除されたアイテムのパスをアウトプット属性として返します。

ファイルまたはディレクトリを削除します。

## 必要なパラメータ

* **file**：削除するファイル（filename 含む）またはディレクトリのパス。

## アウトプット属性

* **file:file**：削除されたファイル（filename 含む）またはディレクトリのパス。

## 例

```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> 
```
