How to disable MySQL Password Validation plugin

The above command will prompt for the root password. Enter the password you created during the installation. A series of questions are asked for which you need to say yes or no. In the series of of question, the first question is :

VALIDATE PASSWORD PLUGIN can be used to test passwords
and improve security. It checks the strength of password
and allows the users to set only those passwords which are
secure enough. Would you like to setup VALIDATE PASSWORD plugin?
Press y|Y for Yes, any other key for No:

How to disable MySQL password validation plugin in MySQL 5.7 version

If you are not able to remove the plugin, then reduce the password validation policy to LOW in /etc/my.cnf as below and then run mysql_secure_installation, set an easy password for root, login to the mysql system and then run the uninstall plugin command.

# vim /etc/my.cnf
validate_password_policy=LOW

How to disable MySQL password validation plugin in MySQL 8.0 version (MariaDB)