Check out example codes for "how to delete user in mysql". It will help you in understanding the concepts better.

Code Example 1

DROP USER 'jeffrey'@'localhost';

FOR DELETING USER

Code Example 2

DROP USER 'jeffrey'@'localhost';

Code Example 3

DROP USER IF EXISTS 'user'@'127.0.0.1' ;

Learn ReactJs, React Native from akashmittal.com