> For the complete documentation index, see [llms.txt](https://osl.mistium.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://osl.mistium.com/legacy-osl-originos/files/deleting-files.md).

# Deleting Files

```javascript
file "exists" path/uuid
// if the file doesnt exist dont try to open it
if !exists (
  log "file does not exist"
  return
)
// use the file as the current target
file "open" path/uuid "onlyaccess"

// immediately delete the file
file "delete"

// clean up the file target
file "close"
```
