'How can I remove rust cargo from my PATH after installing rust

I have ~/.cargo/bin in $PATH since I installed rust and cargo using curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh. I can't find where .cargo/bin is added to my PATH anywhere (my default shell is zsh). I want to remove it from my PATH.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source