Why Do I Receive Error 6 Occurred at Delete When Deleting a Folder?
Primary Software Version: 2012 SP1
Primary Software Fixed Version: N/A
Secondary Software: N/A
When trying to delete a folder using the Delete function, I am receiving the following error:
My file path is correct. Why am I getting this error?
For LabVIEW 2012 SP1 and later:
This error typically occurs when the folder is populated. The Delete function has an
To resolve this issue, you must wire a True constant to the
This will allow you to remove the folder and its contents. Do proceed with caution; the Delete function will not move the files to Recycle Bin. Once deleted, the files will not be recoverable.
For LabVIEW 7.1 and earlier:The Delete VI will not delete a populated directory. The VI will return an error if the directory is not empty. Therefore, the directory should either be emptied manually, or the List VI can be used to go through the directory and find all of the files and subdirectories. These files and subdirectories can then be deleted along with the highest-level directory. Please see the attached example for more details.
If this does not resolve your issue, please look in the related links for other potential solutions.
KnowledgeBase 158774BS: Error 8 When Using Delete File Function in LabVIEW
KnowledgeBase 5V3KFEYJ: LabVIEW Error 6 – "Generic File I/O error"
Report Date: 10/13/2005
Last Updated: 02/29/2016
Document ID: 3QCDOKIZ