my $dir = '/directory/path'; system('rm','-r',$dir);