Post the code that you are trying, and maybe we can spot an issue with it. It may also be a rights issue. Are you sure the user logging in has rights to delete files from the sys32 folder?