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

# delfile

Removes the file at `path` from Seliware's workspace folder.

```luau theme={null}
delfile(path: string): ()
```

`path` is workspace-relative - no `"workspace/"` prefix, no `"../"` traversal. The deletion is final; there's no recycle bin.

## Parameters

| Parameter | Type     | Description     |
| --------- | -------- | --------------- |
| `path`    | `string` | File to delete. |

## Returns

<code title="the function does not return a value.">void</code>

## Example

<CodeGroup>
  ```luau Example 1 theme={null}
  <<<<<<< HEAD
  delfile("hello.txt")
  =======
  -- delfile(path: string): ()
  >>>>>>> 50e30f53759b0538759af25c9b271514aa2c9290
  ```

  ```luau Example 2 theme={null}
  delfile("temp_cache.txt")
  ```
</CodeGroup>

<Tip>
  Throws an error if the file does not exist.
</Tip>
