BeyondERP.Newsletter
Menu

Setup step on the Clean up ledger journals page · General ledger

Clean up posted ledger journals

Delete posted journals and their reversal information when they will never be reversed.

Used by
Accounting manager, Accounting supervisor, Rental manager and 2 more roles
Business process
Close periods
Menu item
Action:LedgerJournalCleanUp
Setup steps
1 on this page

How this guide was checked

Checked in Dynamics 365
Version 10.0.49: the menu item, form, table and security, the page.
Recommended values
Based on Microsoft's documentation. A sound starting point to adjust to your own business requirements.
Tests
A ready-to-run test, “Cleanup deletes only posted journals in range”, to confirm this setup in your own test environment.
Show what matters for
SETUP GUIDEHow to set it up8 sections. Choose a role to highlight what matters to you.
Everyone

1What it is and why

What it isA cleanup routine that deletes posted General ledger, Accounts receivable, and Accounts payable journals.
What you do hereUse this page to remove posted ledger journals, and the information related to their original transactions, when reversing them won't be needed.
ExampleFor example, BEAT keeps posted journal history for ten years. In 2026 the accounting manager runs the cleanup in a copy of production first for posted General ledger journals dated 1 January to 31 December 2015, checks the result, and then runs it in production in batch.
Clean up ledger journals page in Dynamics 365
The page in Dynamics 365. page title tab to open what to set or check
Functional consultant · Solution architect

2Where it fits

Business processClose financial periods › Close periods
Menu pathGeneral ledger › Periodic tasks › Clean up ledger journals
Set up firstPost journals Microsoft Learn
Used next byGeneral journals Microsoft Learn
Related pagesFeature management Microsoft Learn
In this process Generate pending accounting · Review the history of close tasks
End user · Functional consultant

3How to do it

About the examples: Examples and screenshots in this guide use BEAT, a demo company in a Dynamics 365 test environment. Use your own company's codes and values instead of copying them.

When to run it

When to run itOnly for posted journals you are sure you will never need to reverse.
How oftenRarely, as part of data housekeeping; there's no fixed cadence.
Batch settingsRun it as a batch job, and turn on Delete journals batch process performance improvement in Feature management (10.0.47 and later) so it runs more efficiently.
What the output showsThe posted General ledger, Accounts receivable and Accounts payable journals in the date range are deleted, together with all information related to their original transactions.

Source: Microsoft Learn

Setup steps on this page

Clean up posted ledger journals

Delete posted journals and their reversal information when they will never be reversed.

Steps from Microsoft

  1. Go to General ledger > Periodic tasks > Clean up ledger journals.
  2. Under Date range, enter the From date and To date of the posted journals to delete.
  3. Expand General ledger, Accounts receivable and Accounts payable and set the options for each area, so only the journal types you mean are deleted.
  4. Under Run in the background, run it as a batch job; with the Delete journals batch process performance improvement feature (10.0.47 and later) it uses a top picking pattern.
  5. Afterwards, open the journal lists for the date range and check that only the posted journals you meant to remove are gone.

Source: Microsoft Learn

Fields on the page

FieldWhat it means
From date and To dateThe date range of the posted journals to delete.Checked in Dynamics 365

Common errors and fixes

MessageWhat to do
A transaction can't be reversed after the cleanupDeleting a posted journal removes the information related to the original transaction. Run the cleanup only for journals you will never reverse; post a manual correcting entry instead. Microsoft Learn

Test checklist

  1. Only posted journals in the date range were deleted.
  2. Unposted journals in the range are still there.
  3. The batch job history shows the run ended without errors.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Clean up posted ledger journalsRun it rarely, for date ranges outside your retention period, after a test in a copy of production, as a batch job.The cleanup removes the information needed to reverse the original transactions, and it can't be undone.Are posted journals cleaned up?Running it for recent periods, which stops reversals that may still be needed.Test: Cleanup deletes only posted journals in range

Feature management and licence

Feature to turn onDelete journals batch process performance improvement (Optional, 10.0.47 and later)
Licence or add-inIn this system 5 roles can run this page, among them Accounting manager, Accounting supervisor, Rental manager and Rental sales manager. Turn on Delete journals batch process performance improvement (10.0.47 and later) for large runs. Give the privilege only to the people who run data housekeeping.

Microsoft Learn

Solution architect

5Design impact

Shared or per companyPer company: the cleanup deletes posted journals of the legal entity it runs in. Microsoft Learn
Can it be undoneIrreversible: Deleted journals can't be restored.
If you change it laterDeleting a posted journal removes all the information related to the original transaction, so run it only when reversing those transactions won't be needed. Microsoft Learn
Technical architect

6Technical

Menu itemAction:LedgerJournalCleanUp Checked in Dynamics 365
FormDialog Checked in Dynamics 365
Who can open it

5 security roles. Select a role to see its duties and privileges.

  • RoleAccounting managerLedgerAccountingManager
    • DutyEnable general ledger processLedgerGeneralLedgerProcessEnable
      • PrivilegeDelete ledger journalsLedgerJournalCleanUpProcess
  • RoleAccounting supervisorLedgerAccountingSupervisor
    • DutyEnable general ledger processLedgerGeneralLedgerProcessEnable
      • PrivilegeDelete ledger journalsLedgerJournalCleanUpProcess
  • RoleRental managerRentalManager
    • DutyEnable general ledger processRentalLedgerGeneralLedgerProcessEnable
      • PrivilegeDelete ledger journalsLedgerJournalCleanUpProcess
  • RoleRental purchasing managerRentalPurchasingManager
    • DutyEnable general ledger processRentalLedgerGeneralLedgerProcessEnable
      • PrivilegeDelete ledger journalsLedgerJournalCleanUpProcess
  • RoleRental sales managerRentalSalesManager
    • DutyEnable general ledger processRentalLedgerGeneralLedgerProcessEnable
      • PrivilegeDelete ledger journalsLedgerJournalCleanUpProcess
Roles worked out from Microsoft's standard security setup and checked in a working Dynamics 365 system (version 10.0.49)
Roles to set it up and use itTo use itAccounting manager LedgerAccountingManagerAccounting supervisor LedgerAccountingSupervisorRental manager RentalManagerRental sales manager RentalSalesManagerRental purchasing manager RentalPurchasingManagerGive people one of these roles. On this system, 5 roles can run this page.Checked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=Action:LedgerJournalCleanUp
Data migrationLoad order: Clean up ledger journals has no data entity in Data management, so it can't be loaded from a file or a configuration template. It deletes data; there's nothing to load.Checked in Dynamics 365
Everyone

8Sources

To cite this step: GL-RTRX-260, Clean up posted ledger journals. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/GL-RTRX-260