Uninstall or delete MariaDB completely for re-installation code example Example: remove mariadb $ sudo apt-get purge mariadb-server