| What it is | A periodic task that deletes temporary work history records. |
|---|---|
| What you do here | Use this task to delete temporary work history older than the number of days you choose to keep. |

Job page · Warehouse management
A periodic task that deletes temporary work history records.
action:WHSTmpWorkLineHistoryPurge| Business process | Manage warehouse operations |
|---|---|
| Menu path | Warehouse management › Periodic tasks › Clean up › Work line history log cleanup |
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 the temporary work line history has grown and the business has confirmed that work line history older than the retention period isn't needed. |
|---|---|
| How often | On demand, or on a regular schedule once the business has agreed a retention period for work line history. |
| Batch settings | Schedule it as a recurring background job outside warehouse peak hours, with the same number of days each time. |
| What the output shows | The temporary work line history records older than the number of days you entered are removed. If recent history disappears, the number of days was set too low. |
Source: Microsoft Learn
Source: Microsoft Learn
Source: Microsoft Learn
| Can it be undone | No: Deleted work line history can't be restored. Test the routine in a test environment first and run it only after the business confirms the data isn't needed. Microsoft Learn |
|---|---|
| If you change it later | Permanently deletes temporary work line history records older than the retention period. Microsoft Learn |
| Menu item | action:WHSTmpWorkLineHistoryPurge |
|---|
| Open it by URL | https://<your-environment>/?mi=action:WHSTmpWorkLineHistoryPurge |
|---|