---
title: "rimraf"
description: "A cross-platform utility for removing directory trees."
pagination: false
---

{/* Generated from content/. Edit the catalog, not this page. */}

<PurposeNote title="Good for">Cleaning generated files and build directories in development scripts.</PurposeNote>

## What it does

A cross-platform utility for removing directory trees.

## When it fits

Cleaning generated files and build directories in development scripts.

## Other options in this category

<div data-pagefind-ignore>

- [Better Upload](/files/better-upload) — Connecting an upload interface directly to object storage.
- [content-disposition-header](/files/content-disposition-header) — Controlling filenames and attachment behavior in file-download responses.
- [downloadjs](/files/downloadjs) — Saving data that an application generates on the client.
- [FileSaver.js](/files/filesaver-js) — Offering downloads of client-generated documents and exports.
- [Formidable](/files/formidable) — Handling file-upload requests on a server.

</div>

## Source

[Project source for rimraf ↗](https://www.npmjs.com/package/rimraf)

Editorial overview reviewed on October 24, 2026. Follow the source for current setup, compatibility, and licensing.

[Import or export a file →](/tasks/import-or-export-a-file)

[All files, uploads &amp; downloads options →](/files)
