For AI agents: this page in Markdown: https://www.pubnub.com/docs/chat/chat-sdk/build/features/users/delete.md. Documentation index: https://www.pubnub.com/llms-full.txt.
Delete users
Remove users permanently with delete() or deleteUser().
delete()- call on aUserobject (no ID needed)deleteUser()- call on aChatobject (requires user ID)
Requires App Context
Enable App Context in the Admin Portal to store user data.
Method signature
These methods take the following parameters:
-
delete()1user.delete(): Promise<true> -
deleteUser()1chat.deleteUser(id: string): Promise<true>