No "Undo" button, cheat, or mechanic exists in Pokémon Mystery Dungeon: Explorers of Sky (DS). Permadeath (loss of items/money) on dungeon wipe is a core roguelike design pillar.
Action Replay Codes exist for "Walk Through Walls" or "Infinite HP" but corrupt save files often. Not recommended.