Check out example codes for "delete mysql from mac". It will help you in understanding the concepts better.

Code Example 1

$ brew uninstall mysql

Uninstalling /usr/local/Cellar/mysql/5.6.19...

Learn ReactJs, React Native from akashmittal.com