MariaDB [(none)]> flush privileges;
MariaDB [(none)]> drop user 'cr'@'localhost';
MariaDB [(none)]> SELECT DISTINCT CONCAT('User: ''',user,'''@''',host,''';') AS query FROM mysql.user;