How to delete or remove a MySQL/MariaDB user account on Linux/Unix

Originally published at: https://www.cyberciti.biz/faq/how-to-delete-remove-user-account-in-mysql-mariadb/

I created a MySQL / MariaDB user account using this page. Now, I have deleted my wordpress blog and I want to delete that user account including database too. How do I delete or remove a MySQL or MariaDB user account on Linux or Unix-like system using mysql command line option?