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

> Deletes a file or directory at the specified path and returns the path of the deleted item as an output attribute.

Deletes a file or directory.

## Required Parameters

* **file**: The path of the file (including the filename) or directory to delete.

## Output Attributes

* **file:file**: The path of the file (including the filename) or directory that was deleted.

## Example

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