in reply to Delete files with Perl in Windows

Are you sure that the script has enough privileges to delete these files?

Usually CGI scripts are run with low privileges in order to prevent malicious actions if there are security holes, and usually they can't delete arbitrary files.