Check out example codes for "uninstall mysql ubuntu 18.04". It will help you in understanding the concepts better.

Code Example 1

$ sudo apt-get remove --purge mysql-server mysql-client mysql-common -y
$ sudo apt-get autoremove -y
$ sudo apt-get autoclean

rm -rf /etc/mysql
# Delete all MySQL files on your server:
sudo find / -iname 'mysql*' -exec rm -rf {} \;

Code Example 2

$ sudo apt-get remove --purge mysql-server mysql-client mysql-common -y
$ sudo apt-get autoremove -y
$ sudo apt-get autoclean
$ sudo rm -rf /etc/mysql
# Delete all MySQL files on your server: 
$ sudo find / -iname 'mysql*' -exec rm -rf {} \;

Learn ReactJs, React Native from akashmittal.com