There is no "delete all trash" cheat in The Sims 2. Trash is a physical simulation object that must be cleaned up through gameplay. Here are the most effective legitimate methods to keep your lots spotless.
motherlode (50,000§) to afford one (Buy Mode → Appliances → Misc). It instantly destroys any trash placed in it.moveObjects on + Delete in Buy Mode — Hold Alt to place/delete off-grid. Warning: May leave an invisible footprint; use sparingly.Pro tip: Trash compactor + maid = zero micro-management.