Ideally, GAM would accept label ID as an argument when deleting labels, and the "--ALL_LABELS--" option would query label IDs once and delete them. The current behavior seems to be that the Gmail API is queried for the full list of labels every time a label is deleted.
I have a couple of users that hit Gmail's maximum of 10,000 labels when attempting to migrate from Exchange (don't ask me how they manage to make this work, lol). I'm deleting all labels for one of these users now, and it is excruciatingly slow, both because retrieving the list of 10,000 labels each time takes some time to complete, and I'm running into a number of "429: rateLimitExceeded - Too many concurrent requests for user" errors (I usually don't have this issue when deleting labels, so I think this is related to the label list retrieval as well).
--ALL_LABELS-- should definitely just query the list of labels and label ID's once, since there's no worry about the user passing in incorrect ID's there. It would be nice if I could pass in label ID's as well, in case I ever need to delete a subset of labels for a user that has a large number of labels. This would be a corner case of a corner case, lol, so just improving the --ALL_LABELS-- performance should be good enough for my purposes at least.
Ideally, GAM would accept label ID as an argument when deleting labels, and the "--ALL_LABELS--" option would query label IDs once and delete them. The current behavior seems to be that the Gmail API is queried for the full list of labels every time a label is deleted.
I have a couple of users that hit Gmail's maximum of 10,000 labels when attempting to migrate from Exchange (don't ask me how they manage to make this work, lol). I'm deleting all labels for one of these users now, and it is excruciatingly slow, both because retrieving the list of 10,000 labels each time takes some time to complete, and I'm running into a number of "429: rateLimitExceeded - Too many concurrent requests for user" errors (I usually don't have this issue when deleting labels, so I think this is related to the label list retrieval as well).
--ALL_LABELS-- should definitely just query the list of labels and label ID's once, since there's no worry about the user passing in incorrect ID's there. It would be nice if I could pass in label ID's as well, in case I ever need to delete a subset of labels for a user that has a large number of labels. This would be a corner case of a corner case, lol, so just improving the --ALL_LABELS-- performance should be good enough for my purposes at least.