will uninstalling mariadb remove database files code example Example: remove mariadb $ sudo apt-get purge mariadb-server