use File::Path; rmtree( [$name], 0, 0 );