Forum Discussion

richie's avatar
richie
Community Hero
6 years ago

Delete Contents of a DataSink File After Execution of a Project?

Hey!

 

I have a datasink file that is populated during a run after the whole project executes I want to delete the contents of the file so I don't have to manually delete the contents after each run.

 

Would anyone know how to do this?

 

Been reading and I'm thinking a tear down script might be an option - but as you're aware my groovy bites!

 

Any help would be gratefully appreciated!

 

Cheers,

 

richie

9 Replies

  • richie's avatar
    richie
    Community Hero

    no takers?

     

    you're really gonna make me dig out my Java for Idiots book? ;)

     

     

    • groovyguy's avatar
      groovyguy
      Champion Level 1

      Not to be too forward, but it wouldn't hurt to do so. ;) We're here to help, sure, but on our own free time and as we are able. We're also here to help in the context of ReadyAPI and working with it. We are not necessarily to do the work for you. Instead I'd rather help you hone your groovy skills. I assume you are looking to clear the contents of a file that the Data Sink wrote to, correct?