Page 1 of 1

deleting runs with multicontext dll

Posted: Thu Feb 16, 2012 7:49 am
by yobiman
Hi
I am running a large number of simulations via a webservice using the multicontext dll. When I run the simulations for a while the number of ctxtxx folders grow and since my runs have a lot data, they each take up a lot of space.
Is there a way of deleting the run data after I have had the opportunity to copy it into a database (i.e. using C# or something similar)

Many thanks
Phil

Re: deleting runs with multicontext dll

Posted: Thu Feb 16, 2012 8:42 am
by Administrator
If you are using C#, the easiest thing to do is just use an API delete function.

http://msdn.microsoft.com/en-us/library ... elete.aspx

Re: deleting runs with multicontext dll

Posted: Thu Feb 16, 2012 7:08 pm
by yobiman
Many thanks
Phil

Re: deleting runs with multicontext dll

Posted: Mon Feb 20, 2012 1:49 am
by tomfid
If you indicate wantcleanup>0 when you make the call to create the context, this should be taken care of automatically, as long as you delete the context when you're done with it.