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, ...
Answered

How to automatically cleanup (delete) ended batch jobs

(1) ShareShare
ReportReport
Posted on by 22
Hi all,
 
How do i set up an automatic clean up batch job to delete batch jobs that have ended (i.e. ad-hoc one off jobs that run once then end, not recurring jobs that have a history).
 
I tried the custom clean up batch job (https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/sysadmin/batch-history-cleanup) but as it suggests, it only cleans up the history and not individual jobs thenselves, even though the custom job has a filter for /ended/ (e.g. jobs that only run once and therefore have no history).
 
Any advice would be appreciated.
Ash
I have the same question (0)
  • Layan Jwei Profile Picture
    8,097 Super User 2025 Season 2 on at
    Hi Ash,
     
    You can consider designing a custom solution via x++ to delete these jobs.
     
    Thanks,
    Layan Jwei
  • Verified answer
    Hana Xue Profile Picture
    Microsoft Employee on at
    Hi,
    When the batch job is configured to run only once, that batch job will be shown in the grid on the ‘Batch jobs’ form, the status of the batch job is set to ended, you can filter this status, and select the one you want to delete and click the delete button to delete. The system does not have an OOB function to automatically delete these jobs, you need to customize it.
    Best Regards,
    Hana
  • Ash Profile Picture
    22 on at
    Thanks for the replies 👍
  • Verified answer
    Community member Profile Picture
    13 on at
  • Ash Profile Picture
    22 on at
    Thank the maker!
     
    We're on 10.0.38 so can't wait for the next update :D

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 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans