Is there a real need to continue the method's execution after the error?
You may delete file, but exit with an error due to the symlink check. After that, all further iterations will fail due to the non-existent file