SDKsuni-app
Delete a friend
Remove a friendship with a selected user.
import { deleteFriend } from '@/uni_modules/unix-openim-sdk'
await deleteFriend('user_a')Confirm final state through onFriendDeleted or a fresh friend snapshot. Deleting a friend does not delete conversations/history or add the user to the blacklist. Implement those as explicit operations with a defined compensation order, and ask for user confirmation first.
Was this page helpful?