Delete file behavior does not check for the existence of the file
Delete file behavior does not check for the existence of the file! That's pretty basic. If I have to hand code the condition, I may as well hand code the whole this.
I have a set of records that have attached PDF files. The delete behavior deletes the old pdf when a new one is uploaded. I added images, so the existing records did not have any images in them, but for the future, the delete behaviors is included and triggered on a successful upload.
I found that since the existing record's field was empty, WADA Delete file behavior throws an error.
It should in clude a condition that the field/value is not empty (or you'll get a can't unlink a directory error) and that the file exists.