https://linen.dev logo
o
How to delete user entirely?
u
Hey @Or, could you elaborate your query?
o
I mean what previously was identified by "entityId" - a user which can have connectedAcounts, can execute tools... Under GDPR law, if some user of mine, want to delete himself - I'm obligated to allow it, and delete him from all the platforms. So is there a way to delete a user in Composio?
u
Got it, you can delete your users by connected account IDs. You can use [this](https://docs.composio.dev/reference/api-reference/connected-accounts/deleteConnectedAccountsByNanoid) endpoint or SDK [method](https://docs.composio.dev/reference/sdk-reference/typescript/connected-accounts#delete). You can [list](https://docs.composio.dev/reference/api-reference/connected-accounts/getConnectedAccounts) the connected accounts associated with the userIDs and then delete them. Let me know if this works for you.
o
I see, I already did this. Just wanted to check if this is the right way, and it really delete all the user's assets. So great, thanks!