my $server = ""; system ('net use i: \\\\$server\\D$'); system ('net use i: /DELETE');