You can refer below link to Delete Transaction data in Ax 2012. Delete Transaction data To delete data in Axapta 2009 you can run a class sysdatabasetransdelete.
Technical Tutorials x++,tips on issues or troubleshooting On Ax ERP ,Microsoft Dynamics 365,Ax 2012,Microsoft , U.S.,Business Software solution.