I am trying to delete a legal entity from the system (D365 F&O) , that does not have any transactions, and it is giving me the error "Deleting a company can't proceed because there are batch jobs with tasks that belong to different companies, manually delete them to continue"
I have deleted all the batch jobs linked to that company, and cleared the cache using:
Refresh data caches (particularly interesting to run after imports through data management): .../?&mi=SysClassRunner&cls=SysFlushData
Clear system caches: .../?&mi=SysClassRunner&cls=SysDataCacheSystemCacheFlushController
Is there a another step that i am missing?