The LabVIEW vi “Delete” is not functional with folders.
The example below creates two folders and deletes one of them. drag and drop this VI snippet into a LabVIEW block diagram.