---
name: "e2rm"
section: "1"
platform: "linux"
package: "e2tools"
version: "0.1.2-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/e2rm"
---

# e2rm(1)

removes files and directories on an ext2 filesystem

## NAME

e2rm - removes files and directories on an ext2 filesystem

## SYNOPSIS

**e2rm** \[*options*\] *files...*

## DESCRIPTION

The **e2rm** command removes files and directories on an ext2 filesystem.

## OPTIONS

- **-r**

  Recursively delete files if a directory name is given.

- **-v**

  Be verbose.

### Note

This program expects to have a full ext2 file specification for each argument.

## EXAMPLES

Remove a file

    e2rm -v boot.img:/boot/grub/grub.c1 /boot/grub/grub.c2

Remove a directory and all the files

    e2rm -r boot.img:/boot/grub

## SEE ALSO

[**e2tools**(7)](/e2tools/7.md), [**e2ln**(1)](/e2ln/1.md), [**e2ls**(1)](/e2ls/1.md), [**e2mkdir**(1)](/e2mkdir/1.md), [**e2cp**(1)](/e2cp/1.md), [**e2mv**(1)](/e2mv/1.md), [**e2tail**(1)](/e2tail/1.md).

## AUTHOR

The **e2tools** were written by Keith Sheffield \<sheff@pobox.com\>.

This manual page was written by Lucas Wall \<lwall@debian.org\>, for the Debian project (but may be used by others).
