# delete

Delete a file or directory (defensive - doesn't error if not exists).

```rhai
delete(path: &str) -> String
```

## Examples

```rhai
delete("/tmp/oldfile.txt")?;
```

```rhai
if exist("/tmp/cache") {
    delete("/tmp/cache")?;
    print("Cache cleared");
}
```
