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

Code Example 1

DROP USER 'jeffrey'@'localhost';

Code Example 2

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

Learn ReactJs, React Native from akashmittal.com