---
url: /api/reference/wxt/functions/clean.md
---

[API](../../packages.md) / [wxt](../index.md) / clean

# Function: clean()

> **clean**(`config?`): `Promise`<`void`>

Source: [packages/wxt/src/clean.ts:18](https://github.com/wxt-dev/wxt/blob/385a5f49b5d7bf9e4a235f971b3aeb0a12a97a3d/packages/wxt/src/clean.ts#L18)

Remove generated/temp files from the directory.

## Parameters

### config?

[`InlineConfig`](../interfaces/InlineConfig.md)

Optional config that will override your `<root>/wxt.config.ts`.

## Returns

`Promise`<`void`>

## Example

```ts
await clean();
```

***

Generated using [typedoc-plugin-markdown](https://www.npmjs.com/package/typedoc-plugin-markdown) and [TypeDoc](https://typedoc.org/)
