Skip to main content
Question

Delete Folder in Windows Directory

  • September 17, 2018
  • 1 reply
  • 163 views

Forum|alt.badge.img

I am trying to have my FME workbench to delete a folder on a windows directory. I was able to use the FeatureReader and read my Directory and File Pathnames and feed it to the FileCopy but this only deletes the files in the folder, not the folder itself. Is their a way to delete the whole folder and its files opposed to just the files? thanks

 

 

1 reply

fmelizard
Safer
Forum|alt.badge.img+18
  • Safer
  • September 17, 2018

Hi @piercexc Try the SystemCaller.  e.g. If the feature has an attribute "whichdir", then

rmdir C:\temp\@Value(whichdir) /S /Q

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings