I am not able delete file if file is existing

i get this error

CleanUp: Access to the path ‘Check-Request-For-92195973.pdf’ is denied.


before deleting the file use Path exists and based on the path check the condtion as Boolean var and then use delete in then condition

Ashwin S


The path doesn’t have access to delete that file. Check the security of that folder.


Please check the following:

  1. The file path is correct.
  2. Proper rights are enabled to delete the file.
  3. The file you are trying to delete is not open.

Thank you

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.