Are custom uninstall / remove steps possible within a formula?

Similar to the

def install
   do_something()
end

Is there such a method called during brew remove?

1 Like

No, it just removes all files installed.

1 Like