Remove directory tree recursively with Perl

rmtree rm -rf File::Path

examples/rmtree.pl

use strict;
use warnings;

use File::Path qw(rmtree);

my $path = "/path/to/directory";
rmtree $path;


Author

Gabor Szabo (szabgab) Gabor Szabo