Remove all middleware hook.