I have a macro that creates function. It creates interactive functions based on current opened buffer. However, it starts to flood the M-x after a long running section. Is there a way to make a function invalid?
You can use fmakunbound
:
(fmakunbound 'my-boring-function)