There are a few reasons why you should not clean up dead ants.
The first reason is that you could get bitten and the second is that it may cause more harm than good. Dead ants don't have any harmful bacteria and in some cases, they might actually be beneficial for your garden.
The best ways to get rid of ants are by using sugar and boric acid solutions.