Many partners request the feature to delete all transaction data in D365ffO due to following purposes.
(1) Create production environment by using only master data used for UAT environment.
(2) Create new test environment.
AX2012 or before there is SysDatabaseTransDelete class for it.
But D365ffO does not have a function to delete all transaction data.