# @react-native-community/cli-clean

> This package is part of the [React Native CLI](../../README.md). It contains commands for cleaning the build artifacts.

Latest version **20.2.0** (published 2026-06-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install @react-native-community/cli-clean
pnpm add @react-native-community/cli-clean
yarn add @react-native-community/cli-clean
bun add @react-native-community/cli-clean
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 20.2.0 |
| Published | 2026-06-25 |
| First published | 2022-04-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 26.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2928 |
| Maintainers | bartoszklonowski, titozzz, empyrical, cpojer, mattoakes, ferrannp, mike866, krizzu, trensik, thymikee, nicholaslee119, mmazzarolo, rewieer, janicduplessis, swaagie, kelset, johandutoit, vonovak, wojteg1337, naturalclar, connectdotz, pvinis, brentvatne, evanbacon, eliwhite, simek, alloy, cortinico, safaiyeh, dmitryrykun, lunaleaps, wootwootwoot, react-native-bot, szymonrybczak, react-native-community-bot, okwasniewski |

## Links

- npm: https://www.npmjs.com/package/@react-native-community/cli-clean
- Repository: https://github.com/react-native-community/cli
- Homepage: https://github.com/react-native-community/cli/tree/main/packages/cli-clean
- Issues: https://github.com/react-native-community/cli/issues
- npm.io page: https://npm.io/package/@react-native-community/cli-clean

## Dependencies (4)

- [execa](https://npm.io/package/execa.md) ^5.0.0
- [fast-glob](https://npm.io/package/fast-glob.md) ^3.3.2
- [picocolors](https://npm.io/package/picocolors.md) ^1.1.1
- [@react-native-community/cli-tools](https://npm.io/package/@react-native-community/cli-tools.md) 20.2.0

## Recent versions

- 20.2.0 (latest) — 2026-06-25
- 17.0.1 (17.x) — 2025-11-05
- 18.0.1 (18.x) — 2025-11-05
- 19.1.2 (19.x) — 2025-11-05
- 20.0.0-alpha.2 (next) — 2025-07-24
- 16.0.3 (16.x) — 2025-04-17
- 14.1.2 (14.x) — 2024-12-12
- 12.3.7 (12.x) — 2024-06-05
- 11.4.1 (11.x) — 2024-02-19
- 20.1.3 — 2026-03-24
- 20.1.2 — 2026-02-24
- 20.1.1 — 2026-01-28
- 20.1.0 — 2026-01-07
- 20.0.2 — 2025-09-09
- 20.0.1 — 2025-08-20
- … 127 more at https://npm.io/package/@react-native-community/cli-clean/versions

## README

# @react-native-community/cli-clean

This package is part of the [React Native CLI](../../README.md). It contains commands for cleaning the build artifacts.

## Installation

```sh
yarn add @react-native-community/cli-clean
```

## Commands

### `clean`

Usage:

```sh
npx react-native clean
```

Cleans caches. Commonly used to ensure build failures are not due to stale cache. By default, it will prompt which caches to purge, with Watchman and Metro already checked. To omit interactive prompt (e.g. in scripts), please use `--include` flag.

#### Options

#### `--include <string>`

Comma-separated flag of caches to clear e.g. `npm,yarn`. If omitted, an interactive prompt will appear. Valid values include `android`, `cocoapods`, `metro`, `npm`, `watchman`, and `yarn`.

#### `--project-root <string>`

> default: current working directory

Root path to your React Native project. When not specified, defaults to current working directory.

#### `--verify-cache`

> default: false

Whether to verify the cache. Currently only applies to npm cache.

---
_Source: https://npm.io/package/@react-native-community/cli-clean · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
