简体   繁体   中英

Delete skype group chat with Skype4com

I have tried to make a function that will clear my Skype group chats. Here is what I came up with:

1.

foreach (SKYPE4COMLib.GroupCollection d in skype.Groups)
{
    skype.DeleteGroup(d.Count);
}

2.

for (int i = 0; i < skype.Groups.Count; i++)
{
    try
    {
        skype.DeleteGroup(i);
    }
    catch { }
}  

Both approaches doesn't delete the groups. Not sure what needs to be done to remove all groups from my Skype.

It can not be done via Skype4Com at the moment.

By the way, these groups that you are trying to delete are contact groups, ie you can group your contacts in Skype like in any address book. For group chats, look for Chat objects and check the chat member count, something like if (chat.Members.Count > 1).

You can find some more examples here: http://devforum.skype.com/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM