Reference

deleteGmailEmail

Move an email to trash in the connected Gmail account (recoverable delete).
mindstudio.deleteGmailEmail({ messageId }) → Result

Moves a Gmail message to trash in the connected account — a recoverable delete, not a permanent one. Operates on the Gmail account linked via OAuth, not the app's own mailbox.

Parameters
messageId
string
RequiredGmail message ID to delete (move to trash)
connectionId
string
Google OAuth connection ID
Call from a method
import { mindstudio } from '@mindstudio-ai/agent';

const result = await mindstudio.deleteGmailEmail({
  messageId: /* ... */
});