Gmail Delete Label giving an error

Gmail Delete Label giving an error - all I am trying to complete is to unstar the email

What is the error message (if any)?

{ “error”: { “code”: 400, “message”: “Invalid delete request”, “errors”: [ { “message”: “Invalid delete request”, “domain”: “global”, “reason”: “invalidArgument” } ], “status”: “INVALID_ARGUMENT” } }

Please share your workflow

{
“nodes”: [
{
“parameters”: {
“resource”: “label”,
“operation”: “delete”,
“labelId”: “STARRED”
},
“type”: “n8n-nodes-base.gmail”,
“typeVersion”: 2.1,
“position”: [
-120,
-660
],
“id”: “55709ac3-66cf-4620-a9a5-dc143097d8cc”,
“name”: “Gmail1”,
“webhookId”: “dd9d0820-ce2f-4c35-82f5-0fec408063a7”,
“credentials”: {
“gmailOAuth2”: {
“id”: “PsUcgMOFM2Wo4TKt”,
“name”: “Gmail account”
}
}
}
],
“connections”: {},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “911a64da27907bf497df03111ecbeab06ef36408d6edeb79a5551f281b818b7d”
}
}

Share the output returned by the last node

Information on your n8n setup

  • **n8n version: 1.93.0
  • **Database (default: SQLite): n/a
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • **Running n8n via n8n cloud
  • **Operating system: n/a
1 Like

Hey,

So sometimes the label ID is different from what the label name is, see my example below, which calls all label first sort into ID and name, and you should be able to see the ID needed etc.

Hope this helps.

So it’s likely just the ID isn;t the same as the actual name of label etc. :slight_smile:

Hi @King_Samuel_David - Thanks for answering - I worked it out it was a delete label it was a remove label - which was alsoa function available

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.