title: Completely remove MariaDB 10.01 in Ubuntu 18.04
body: <p>I am having a problem while trying to <strong>completely purge</strong> Maria DB and install it again.</p>
  
  <p>This is what I do to remove it :</p>
  
  <pre><code> 2073  sudo apt-get remove --purge maria*
   2074  rm -f /var/log/mariadb
   2075  rm -f /var/log/mariadb/mariadb.log
   2076  rm -rf /var/lib/mysql
   2077  rm -rf /usr/lib64/mysql
   2078  rm -rf /usr/share/mysql
  </code></pre>
  
  <p>And then I attempt to reinstall as :</p>
  
  <pre><code>sudo apt install mariadb-server
  mysql_secure_installation
  </code></pre>
  
  <p>But the problem is once I do it I am being prompted for the root password, which should not be set as I have <strong>supposedly</strong> purged everything.</p>
  
  <h3>Output from mysql_secure_installation :</h3>
  
  <pre><code>[~]@Ubuntu1804  #&gt; mysql_secure_installation 
  
  NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
        SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!
  
  In order to log into MariaDB to secure it, we'll need the current
  password for the root user.  If you've just installed MariaDB, and
  you haven't set the root password yet, the password will be blank,
  so you should just press enter here.
  
  Enter current password for root (enter for none): 
  ERROR 1698 (28000): Access denied for user 'root'@'localhost'
  Enter current password for root (enter for none): 
  ERROR 1698 (28000): Access denied for user 'root'@'localhost'
  Enter current password for root (enter for none): 
  Aborting!
  </code></pre>
  
  <p>If I leave it blank it fails, but If I try with the right password it fails as well.</p>
  
  <p>How can I remove <strong>everything</strong> related to MariaDB from the server?</p>