Remove label Gmail

Topics: Help requests
Feb 27, 2014 at 5:32 PM
I'm trying to delete a gmail label, but this is not removed, there is no error message.
I can add but not remove labels.
This function is operational?
m.labels.remove("Label1/Sub Label")
Feb 27, 2014 at 6:50 PM
Hi hmayorga,

have you configured the client to download the list of GMail labels? This can be done by done this way:
client.Behavior.MessageFetchMode = client.Behavior.MessageFetchMode | MessageFetchMode.GMailExtendedData;
After this, take a look which labels are in the Message.Labels collection and if the label you're trying to remove really has the name you provide in the Remove method.


Feb 28, 2014 at 11:44 AM
thanks Pavel, I'll check
good job
Greetings from Santiago, Chile