yum remove mariadb mariadb-server
rm -rf /var/lib/mysql If your datadir in /etc/my.cnf points to a different directory, remove that directory instead of /var/lib/mysql
rm -rf /var/lib/mysql
rm /etc/my.cnf the file might have already been deleted at step 1
rm /etc/my.cnf