Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8789549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:26:21+00:00 2026-06-13T22:26:21+00:00

We have setup a simple form using Web Forms For Marketers on our Sitecore

  • 0

We have setup a simple form using Web Forms For Marketers on our Sitecore 6.4.0 site. The form is logging information just fine, and we have written a page to allow end-users to view the results, using the code from http://r-coding-sitecoreblog.blogspot.com/2011/11/extracting-data-from-sitecore-wffm.html mainly.

The next step in the progression is to allow a user to approve/reject a submission, and to either pass that form submission’s information to a method, or to delete that form submission all together.

Is there a way to delete a form submission from the WFFM database using c#? I have tried the Sitecore.Forms.Data.DataManager.DeleteForms() method with no luck, and I suspect it deletes the entire form, not just the individual form submission.

EDIT: Additionally, I could handle even setting a flag on the individual form submission, marking it as approved/rejected, and just handling the show/hide logic in my code. So setting a value on a particular form submission would also work.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T22:26:23+00:00Added an answer on June 13, 2026 at 10:26 pm

    You are always welcome to post questions related to the use of my code examples on my blog also 🙂

    You are on the right tracks with using the Datamanager class.
    Here’s an example that deletes all records/submits for a form (one by one).

    It will NOT delete the form it self. Only submitted database entries.

            string formID = ConfigurationManager.AppSettings["FormDataUploadID"].ToString(); 
    
            List<GridFilter> args = new List<Sitecore.Web.UI.Grids.GridFilter>();
            args.Add(new GridFilter("storageName", string.Empty, GridFilter.FilterOperator.Contains));
            args.Add(new GridFilter("dataKey", formID, GridFilter.FilterOperator.Contains));
    
            var submits = Sitecore.Forms.Data.DataManager.GetForms().GetPage(new PageCriteria(0, 0x7ffffffe), null, args);
    
            /// Create a Collection to Loop
            List<IForm> formlist = submits.ToList();
    
            /// Loop all forms from Database and delete each entry.
            foreach (IForm frm in formlist)
            {
                Sitecore.Forms.Data.DataManager.DeleteForms(new Sitecore.Data.ID(frm.FormItemId), frm.StorageName);
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to setup a simple site and I don't have any web development
I have a setup where I'm serving simple python pages using the mod_python publisher.
I have a very simple ColorBox gallery setup just like the examples. Simple tags
I have a simple form with just one textbox and one submit button. The
I have setup a simple example to show a form inside a jquery UI
I'm creating a .vdproj setup for a simple Windows form. I have added a
I have setup some simple associations in my rails app: resources :properties do resources
I have a simple setup, where there are Products and Images. Products have many
So I have a simple setup going here where I load up a file
I have a very simple Setup project that copies three dlls into the GAC.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.