How to Uninstall MariaDB from Linux CentOS

How to Uninstall MariaDB from Linux CentOS

To uninstall MariaDB from Linux CentOS you can use below command
# sudo yum remove MariaDB-server MariaDB-client

If you don't have MariaDB-client installed on the Linux then you can simply use above command without MariaDB-client. 
The uninstallation does not remove the data directory /var/lib/mysql. If you need to use then you can leave the directory for future use, otherwise you can delete by using below command

# sudo rm -r /var/lib/mysql