As far as can I see custombuild does not support remove_mysql so on CentOS remove installed rpm packages with yum/rpm on Debian remove packages with apt/apt-get. If you have MariaDB installed from sources then it might be an issue... anyway you can disable MariaDB from starting at boot time...