web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How the Email History can be deleted which is older than 15 days in D365 F&O

(1) ShareShare
ReportReport
Posted on by 32

Hi all,

Initially while Configuring Email Setup I had mentioned Email retention days 0(Default Setting). Now if I want to check the email History its taking too much time sometime not even loading.

I want to delete all the Email history which are older than 15 days. 

Even after configuring the retention days to 15, the older emails are not getting deleted.

How can I delete the Email history which are older than 15days.

Regards,

Travor

I have the same question (0)
  • huijij Profile Picture
    19,811 on at

    Moved to Finance forum.

  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at

    Hi Travor, Not sure about 15 days retention period but you can check this batch job in your environment.

    pastedimage1684205251164v1.png

  • Suggested answer
    GirishS Profile Picture
    27,827 Moderator on at

    Hi Travor,

    I can see one option to delete batch jobs based on days.

    Navigate to System administration >> Periodic tasks >> "Batch job history clean up" or Batch job history clean up (custom).

    I never used these two forms. But you can give it a try on how these two forms are implemented. At first you can try on any dev environment.

    Thanks,

    Girish S.

  • Patrick_van_Heijningen Profile Picture
    21 on at
    Hi all,

    I'm struggling with the same issues.
    When checking my database usage, 50% of the data is consumed by AXDB.SYSOUTGOINGEMAILDATA
     
    I would like to free-up some space, by deleting all data within this table older than 30 days.
    I came across the Batch Job Clean Up with SysEmailHistoryCleanupBatch, and launched it as batchprocessing with a recurrence.

    However, nothing seems to happen: after +/-24 hours, no data seems to be deleted from the Outgoing Email-list.

    Did I forget something, or do something wrong?
    Thanks!
     
  • Martin Dráb Profile Picture
    237,967 Most Valuable Professional on at
    This thread is about Email history table, which is something that SysEmailHistoryCleanupBatch would help you with. But SysOutgoingEmailData is a different table.
     
    SysEmailHistoryCleanupBatch cleans up SysEmailHistory and SysEmailAttachmentHistory, not SysOutgoingEmailData.
  • Patrick_van_Heijningen Profile Picture
    21 on at
    Hi Martin,

    Thanks for replying, and sorry for mixing up SysEmailHistory and SysOutgoingEmailTable.
     
    Anyway, I'm still running on recurrence the SysEmailHistoryCleanupBatch.
    But when checking the SysEmailHistory, no data is being deleted/cleaned. 
     
    What am I doing wrong here?
  • Martin Dráb Profile Picture
    237,967 Most Valuable Professional on at
    It seems to me that you're deleting batch history related to SysEmailHistoryCleanupBatch, not executing SysEmailHistoryCleanupBatch class.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 428 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans