How can I delete posts from a XForm?

Vote:
 
Hi, I´d like to delete all posts from a specified XForm. Is this possible through code? I see it´s done in the Form-data tab in Edit-mode, so it should be possible... Thanks.
#12562
Mar 21, 2006 19:35
Vote:
 
Hello! In EPiServer 4.60 there are some improvements to the XForm-classes that makes this quite easy. First of all, the XForm class has got a new method, GetPostedData, with a couple of overloads to list posted data. This method returns an IList containing XFormData objects. The XFormData object has a Delete method that makes it easy to delete the posts. If you have to do this in EPiServer 4.51 I'd recomend having a look at the following undocumented classes: EPiServer.DataAccess.XFormStatisticsDB EPiServer.Util.XFormselper
#14511
Apr 03, 2006 15:16
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.