mysql -u root -p -e "DROP USER 'app'@'localhost';"
Delete a MySQL user
Removes the account and all of its privileges with no confirmation. Applications using it lose access immediately, so check SHOW GRANTS FOR 'app'@'localhost'; first. Related: DROP DATABASE for the data.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.