clear

Clears all registered commands and resets the registration state.