DeleteRespondents

Description

Deletes a set of respondent based on a unique key.

Signature
int DeleteRespondents(string key, string projectId, string keyName, string[] keyValues)

Parameters

Name Data Type Description

key

string required

The authentication key

projectId

string required

The project ID

keyName

string required

The name of the unique key.

keyValues

string[ ] required

The key values that identifies the respondents to delete.

Response

Data Type Description

int

Number of respondents deleted.

Example

//***************************************************
//
// Delete respondents
//
//***************************************************

// Initiate webservice
SurveyDataSoapClient sd = new SurveyDataSoapClient();

// We assume that "CustomKey" is a respondent field and
// that it contains unique values like 1,2,3....etc.
sd.SetRespondentUniqueKey(key,projectID,"CustomKey");
string[] keyValues = new string[2]{"1","2"};

// Delete all respondents
int respondentsDeleted = sd.DeleteRespondents(key, projectID, "CustomKey", keyValues);