mysql drop remove database code example Example 1: delete database mysql DROP DATABASE dbname; Example 2: mysql database drop mysql -e "DROP DATABASE db_name;"