First open your mod chest by pressing 9 and clicking. You should see a red stone in there. Click it and all your mods will be removed. You can always reload an old mod to your mod chest by going back to the LearnToMod page it's located on and pressing the Mod button.
Or if you want to clear your inventory, type /clear.