No built-in option to delete save data on the cartridge. The Nintendo DS lacks a system-level save manager for individual games.
Create a new profile/save slot if the game allows. Most Lego games support multiple save files. Check "New Game" → "Select Slot."
If you must wipe: backup saves via flashcart first. Otherwise, live with the data or buy a used cart for a fresh start.