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

# delfolder

Removes the folder at `path` from Seliware's workspace folder, along with every file and subfolder inside it.

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

`path` is workspace-relative. The folder is wiped recursively - there's no "empty folder only" mode and no recycle bin.

## Parameters

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

## Returns

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

## Example

<CodeGroup>
  ```luau Example 1 theme={null}
  <<<<<<< HEAD
  delfolder("scripts")
  =======
  -- delfolder(path: string): ()
  >>>>>>> 50e30f53759b0538759af25c9b271514aa2c9290
  ```

  ```luau Example 2 theme={null}
  delfolder("logs")
  ```
</CodeGroup>

<Tip>
  Folders must usually be empty before deletion depending on the executor.
</Tip>
