Skip to main content

MailboxDeleteOnDownload

Sets whether inbound parcels are automatically deleted from the ECGrid inbox after they are downloaded.

:::caution Established API The SOAP API is in maintenance mode. For new integrations use the REST equivalent. :::

Method Signature

MailboxIDInfo MailboxDeleteOnDownload(string SessionID, int MailboxID, bool DeleteOnDownload)

Parameters

ParameterTypeRequiredDescription
SessionIDstringYesActive session token from Login() with MailboxAdmin or higher authority
MailboxIDintYesNumeric identifier of the mailbox to configure
DeleteOnDownloadboolYestrue to auto-delete parcels after download; false to retain them

Response Object — MailboxIDInfo

Returns the updated MailboxIDInfo record with the new setting applied.

FieldTypeDescription
MailboxIDintNumeric identifier of the mailbox
NetworkIDintNumeric identifier of the parent network
UniqueIDstringUnique string identifier of the mailbox
CompanyNamestringDisplay name of the mailbox
StatusStatusCurrent status of the mailbox
CreateddateTimeOriginal creation timestamp
ModifieddateTimeUTC timestamp of the configuration change
<!-- Example response XML -->
<MailboxIDInfo>
<MailboxID>100</MailboxID>
<NetworkID>1</NetworkID>
<UniqueID>MYMAILBOX</UniqueID>
<CompanyName>My Mailbox Company</CompanyName>
<Status>Active</Status>
<Created>2021-03-20T00:00:00</Created>
<Modified>2026-05-07T14:00:00</Modified>
</MailboxIDInfo>

:::tip When to use DeleteOnDownload Set DeleteOnDownload = true when your integration always processes parcels immediately and confirmed deletion is part of the workflow. Set it to false (the default) when you want to retain downloaded parcels for auditing or re-download scenarios. Regardless of this setting, always call ParcelDownloadConfirm to mark a parcel as acknowledged. :::

Code Examples

// .NET 10 — dotnet-svcutil generated proxy
// Enable auto-delete on download for mailbox 100
var updated = await client.MailboxDeleteOnDownloadAsync(
sessionID,
mailboxId: 100,
deleteOnDownload: true);

Console.WriteLine($"DeleteOnDownload set for: {updated.CompanyName}");

// To disable: pass false
// var updated = await client.MailboxDeleteOnDownloadAsync(sessionID, 100, false);

See Also

REST Equivalent

See Update Mailbox ConfigPOST /v2/mailboxes/update-config.