-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Gmail — add Delete Label action #21079
Copy link
Copy link
Open
Labels
HIGH PRIORITYPIPE-SNactionNew Action RequestNew Action RequestenhancementNew feature or requestNew feature or requesttriagedFor maintainers: This issue has been triaged by a Pipedream employeeFor maintainers: This issue has been triaged by a Pipedream employee
Metadata
Metadata
Assignees
Labels
HIGH PRIORITYPIPE-SNactionNew Action RequestNew Action RequestenhancementNew feature or requestNew feature or requesttriagedFor maintainers: This issue has been triaged by a Pipedream employeeFor maintainers: This issue has been triaged by a Pipedream employee
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
StatusShow more project fields
Doing
Is there a specific app this action is for?
Gmail
Please provide a link to the relevant API docs for the specific service / operation.
https://developers.google.com/workspace/gmail/api/reference/rest/v1/users.labels/delete
Problem
Gmail's components let an agent create a label, list labels, and add or remove a label on a message, but there is no action to delete a label definition from the account. The existing remove-label-from-email action only detaches a label from a single message through users.messages.modify and does not remove the label itself. An agent managing a mailbox's label set cannot delete labels it or a user created.
What's needed
A new Delete Label action that calls users.labels.delete with the selected label id. It should reuse the existing label propDefinition in gmail.app.mjs, which is backed by listLabels, so the label is chosen from a dropdown, filtered to user-created labels because system labels such as INBOX and SENT cannot be deleted. Set destructiveHint to true, since the call permanently removes the label and strips it from every message and thread it was applied to.
Notes
[AI-11774]