mdeltree

deletes directories from MS-DOS filesystems

TLDR

Delete directory tree
$ mdeltree [a:dirname]
Delete multiple directories
$ mdeltree [a:dir1] [a:dir2]
Verbose output
$ mdeltree -v [a:dirname]

SYNOPSIS

mdeltree [options] directories

DESCRIPTION

mdeltree deletes directories from MS-DOS filesystems. It removes directories and all contents.The tool is part of mtools. It's the MS-DOS equivalent of rm -rf for FAT filesystems.

PARAMETERS

DIRECTORIES

Directories to delete on MS-DOS disk.
-v
Verbose output.
--help
Display help information.

INSTALL

sudo apt install mtools
sudo dnf install mtools
sudo pacman -S mtools
sudo apk add mtools
sudo zypper install mtools
brew install mtools
nix profile install nixpkgs#mtools

CAVEATS

Part of mtools. FAT filesystem only. Recursively deletes all contents.

HISTORY

mdeltree is part of mtools, providing MS-DOS deltree functionality on Unix systems.

SEE ALSO

mdel(1), mmd(1), mcopy(1)