Remove all users from the buddy list.
Deprecated In order to avoid conflits with the buddy list advanced security mode implemented since SmartFoxServer Pro 1.6.0, buddies should be removed one by one, by iterating through the buddy list.
Deprecated In order to avoid conflits with the buddy list advanced security mode implemented since SmartFoxServer Pro 1.6.0, buddies should be removed one by one, by iterating through the buddy list.

C# | Visual Basic | Visual C++ |
public void ClearBuddyList()
Public Sub ClearBuddyList
public: void ClearBuddyList()

Sends:
SFSEvent..::.OnBuddyListDelegate
History:
SmartFoxServer Pro v1.6.0 - Method deprecated.
Version:
SmartFoxServer Basic / Pro

The following example shows how to clear the buddy list.
CopyC#

smartFox.ClearBuddyList();