Skip to main content

surveyResponseDelete

Soft-deletes survey response groups and their answers, returning the response-group ID of every affected answer row, so IDs can repeat. Deleting already deleted responses succeeds again; an error is returned when nothing matches. Requires survey edit access.

surveyResponseDelete(
surveyId: ID!
responseGroupIds: [ID!]
): [ID!]

Arguments​

surveyResponseDelete.surveyId ● ID! non-null scalar​

Survey UUID from addonList with type SURVEY.

surveyResponseDelete.responseGroupIds ● [ID!] list scalar​

Response-group IDs from surveyResponseList.responses.id or surveyResponses.response.id; provide a nonempty list.

Type​

ID scalar​

The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.