Forum Discussion

Roger's avatar
Roger
Contributor
16 years ago

How to delete users by call API?

I  want to delete a user by call API , but return error message .

My API source code:

 

{removed for security reasons}

 

Return error code:

<response status="error">

<error code="501">
<message>Unknown path element at node 'user'.</message>
</error>
</response>

I hope this helps
thanks.

Message Edited by TreyW on 04-28-2009 01:48 PM

4 Replies

  • ChristineC's avatar
    ChristineC
    Khoros Alumni (Retired)
    16 years ago

    hi roger,

     

    what is the rest api method you are using? sorry, i am not familar w/ a delete method for users.

  • is your question solved? If so, could you send my the solution via pm?
  • PaoloT's avatar
    PaoloT
    Lithium Alumni (Retired)
    12 years ago

    Hi,

     

    it is not possible to delete users in the platform. More details are available here.

     

    Thanks,

     

     

  • Very old post, I know, but it still shows up on top when one searches "Delete User with API"... there are even more topics and all of them state that it is not possible to delete a user via API, but it is possible at least since 2021: https://developer.khoros.com/khoroscommunitydevdocs/reference/delete-a-user

    It might have been introduced with the GDPR functionality.

    You can simply issue a DELETE request (with proper authorization of course) to /api/2.0/users/<user-id> to delete a user, you'll get back a user object (JSON) with the deleted property set to true.