/// <summary> /// Delete all of the specified user's responses. /// </summary> /// <param name="authenticationToken">Encrypted forms auth token identifying the requesting user.</param>s /// <param name="userIds">Array of unique identifiers of the users whose responses to delete.</param> /// <remarks> /// Responses are "soft deleted" from the database. Responses are flagged as deleted, /// but rows are not removed from the ckbx_Response or ckbx_ResponseAnswers tables. /// </remarks> private static bool DeleteResponsesOfUsers(string authenticationToken, string[] userIds) { /* * If you are unable to reference System.Service make sure that the project is configured to * use the full 4.0 framework and not the client profile. */ var proxy = new UserManagementServiceClient(); var result = proxy.DeleteResponsesOfUsers(authenticationToken, userIds); // Handle exceptions if (!result.CallSuccess) { Console.WriteLine(result.FailureMessage); return false; } // The DeleteResponseOfUsers method does not return ResultData. Return true if the operation completed successfully. return true; }