IMAP delete read emails

Hi all,

I know using IMAP that one can mark an emails delete flag. Has anyone actually done the actual delete portion of this action. I have an email account that is never accessed by a person, but only through 4D. We need to make sure old emails are deleted so we do not go over the quota set by the administrator