How to remove a hook