I'm going nuts trying to figure this one out.Unlink works fine on files, and I have have verified that the path I am providing is the correct path to the folder I want to delete.[html]my $folder = "12_30_2008";my $parentFolder = "Y:\\default\\main\\***********\\REGULATORYAFFAIRS_DEV\\WORKAREA\\root\\about_pge\\regulatory_affairs\\pdfs\\price_summaries\\";unlink("$parentFolder/$folder") or die "Can't delete $folder : $!"; [/html]All it returns is "Can't delete 12_30_2008."I can't even get it to return a good error message.Does this ring a bell with anyone?
File:ath
rmtree
It's all there if you search for it:http://perldoc.perl.org/functions/unlink.html
You're trying to delete a folder? In that case look at the perldoc for File:ath - specifically at the information about rmtree