Skip to main content
Glama
adamzaidi

icloud-mcp

by adamzaidi

delete_email

Remove a specific email from your iCloud Mail inbox using its unique identifier to manage your mailbox and maintain organization.

Instructions

Delete a single email

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uidYesEmail UID
mailboxNoMailbox name (default INBOX)

Implementation Reference

  • The handler for deleting a single email by UID.
    export async function deleteEmail(uid, mailbox = 'INBOX', creds = null) {
      const client = createRateLimitedClient(creds);
      await client.connect();
      await client.mailboxOpen(mailbox);
      await client.messageDelete(uid, { uid: true });
      await client.logout();
      return true;
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/adamzaidi/icloud-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server