Skip to main content
Question

Delete Folder in Windows Directory

  • September 17, 2018
  • 1 reply
  • 228 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

 

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

fmelizard
Safer
Forum|alt.badge.img+20
  • Safer
  • 3719 replies
  • 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