delete_participants in RPC

More
1 year 2 months ago #184928 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?
Attachments:

Please Log in to join the conversation.

LimeSurvey Partners
More
2 months 3 days ago #200728 by michaelsvenna
I have exactly the same problem. Were you ever able to solve this issue?

Please Log in to join the conversation.

More
2 months 3 days ago - 2 months 3 days 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: 2 months 3 days ago by Joffm.

Please Log in to join the conversation.

More
2 months 3 days ago #200747 by michaelsvenna
Ah yes. I got that one working also now....But i cannot delete responses :(

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now