Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

delete_participants in RPC

  • someuser99
  • someuser99's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 10 months ago #184928 by someuser99
delete_participants in RPC was created by someuser99
Hello,

I have a problem with delete_participants rpc call. I want to delete a participant based on token using this method. The problem is that i don't get an error but an empty array back and the user is never deleted. See attachment (no_result).

I read through this post bugs.limesurvey.org/view.php?id=14601#c51064

I updated my lime survey version to Version 3.17.3+190429 and there is no audit log plugin enabled(plugin_attachment).


Also, the user has all the rights to delete a token and so on(permissions attachment).

Can some one explain how to successfully delete a participant?
The topic has been locked.
More
3 years 10 months ago #200728 by michaelsvenna
Replied by michaelsvenna on topic delete_participants in RPC
I have exactly the same problem. Were you ever able to solve this issue?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago - 3 years 10 months ago #200736 by Joffm
Replied by Joffm on topic delete_participants in RPC

I have exactly the same problem

So you also want to delete participants from the participants table.
And there is no issue, it was a misunderstanding of the TE.
He used the TOKEN:TOKEN, not he TOKEN:ID and a wrong syntax.

I use this without problems.
$response = $myJSONRPCClient->delete_participants(
$sessionKey,
$survey_id,
["6","12","14"]
);


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 years 10 months ago by Joffm.
The topic has been locked.
More
3 years 10 months ago #200747 by michaelsvenna
Replied by michaelsvenna on topic delete_participants in RPC
Ah yes. I got that one working also now....But i cannot delete responses :(
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose