EmailInfoProviderDeleteArchived Method |
Deletes expired archived e-mails. Size of deleted "batch" is specified by batchSize.
Namespace: CMS.EmailEngineAssembly: CMS.EmailEngine (in CMS.EmailEngine.dll) Version: 13.0.131
Syntax public static int DeleteArchived(
int siteId,
DateTime expirationDate,
int batchSize
)
Parameters
- siteId
- Type: SystemInt32
Site ID - expirationDate
- Type: SystemDateTime
Every archived email older that expiration date will be deleted - batchSize
- Type: SystemInt32
Number of emails to be deleted at once
Return Value
Type:
Int32Returns number of deleted emails.
See Also