rimraf is a cross-platform Node.js utility that provides functionality equivalent to the Unix rm -rf command for recursively deleting files and directories. The library is designed to reliably remove deeply nested directory trees across operating systems, including Windows environments where native deletion behavior can be inconsistent. It exposes both programmatic and CLI interfaces, making it suitable for build scripts, cleanup tasks, and automation workflows. rimraf includes multiple removal strategies and fallbacks to handle filesystem edge cases such as locked files or permission issues. The tool emphasizes aggressive and complete deletion, which is why its documentation strongly warns against passing untrusted input. Overall, rimraf remains one of the most widely used cleanup utilities in the Node.js ecosystem.

Features

  • Recursive file and directory deletion
  • Cross-platform rm -rf behavior
  • CLI and programmatic usage
  • Windows reliability strategies
  • Promise and sync APIs
  • Multiple removal implementations

Project Samples

Project Activity

See All Activity >

Categories

System

Follow rimraf

rimraf Web Site

Other Useful Business Software
AI-generated apps that pass security review Icon
AI-generated apps that pass security review

Stop waiting on engineering. Build production-ready internal tools with AI—on your company data, in your cloud.

Retool lets you generate dashboards, admin panels, and workflows directly on your data. Type something like “Build me a revenue dashboard on my Stripe data” and get a working app with security, permissions, and compliance built in from day one. Whether on our cloud or self-hosted, create the internal software your team needs without compromising enterprise standards or control.
Try Retool free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of rimraf!

Additional Project Details

Operating Systems

Windows

Programming Language

TypeScript

Related Categories

TypeScript System Software

Registered

2 days ago