DeleteRespondents
Description
Deletes a set of respondent by filter.
Signature
int DeleteRespondents(string key, string projectId, string filterExpression)
Parameters
Name | Data Type | Description |
---|---|---|
key |
string required |
The authentication key |
projectId |
string required |
The project ID |
filterExpression |
string required |
Filtering expression. |
Example
//***************************************************
//
// DeleteRespondents
//
//***************************************************
// Initiate webservice
DataTransferSoapClient dataTransfer = new DataTransferSoapClient();
// Create a filter expression to filter out the respondents to delete. In this case
// all respondents with the email address "forstasupport@forsta.com" will be deleted.
string filterExpression = "email = \"forstasupport@forsta.com\"";
// Delete all respondents matching the filter expression
int numberOfRespondentsDeleted = dataTransfer.DeleteRespondents(key, projectId, filterExpression);