Explorer Undo Use ctrlz / cmdz with the explorer focused to undo file deletes, moves, and renames. Use the explorer.confirmUndo setting to control when VS Code prompts you for undos in the explorer.