unset -f my_function
will remove (or unset) the function my_function
unfunction my_function in zsh
unfunction my_function
zsh
Perhaps, I'm a bit late in this good old '15, but this feature persists.