Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Delete folders on remote server after SSH2 Get step

  1. #1
    Join Date
    Jun 2011
    Posts
    13

    Question Delete folders on remote server after SSH2 Get step

    Hi

    How do I delete the files and folders on a remote server after I have downloaded them using the SSH2 Get step? I tried changing the 'After SSH Put' setting to 'Delete files'. This deleted the files out of the folders on the remote server but not the folders.

    Thanks

  2. #2

    Default

    Not sure why it doesn't, but one option is to execute a shell script at the end of your job that simply says "rm -rf <<dir>>".

  3. #3
    Join Date
    Apr 2008
    Posts
    1,771

    Default

    Hi Robnz.
    You could use a Step: Delete Folder if your files retrieval completed successfully.

    Mick

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.