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

Announcements

No record found.

News and Announcements icon
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,165 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 577 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 309

#3
Diego Mancassola Profile Picture

Diego Mancassola 259

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans