Database delete automatic

I am not too sure about

mongosh> show dbs
data            73.7 kB
equipoule       21.7 MB
forums            41 kB
nota_bene_test   115 kB
poem              41 kB
prototype        582 kB
salon           22.7 MB
test             213 kB
zoo              111 kB
admin            348 kB
local           3.13 GB
mongosh> use Tin_Cvitkovic
'switched to db Tin_Cvitkovic'
mongosh> show dbs
data            73.7 kB
equipoule       21.7 MB
forums            41 kB
nota_bene_test   115 kB
poem              41 kB
prototype        582 kB
salon           22.7 MB
test             213 kB
zoo              111 kB
admin            348 kB
local           3.13 GB

However it does get created if you insert into a collection.

mongosh> db.test.insertOne( { _id : 1})
{ acknowledged: true, insertedId: 1 }
mongosh> show dbs
Tin_Cvitkovic   8.19 kB
data            73.7 kB
equipoule       21.7 MB
forums            41 kB
nota_bene_test   115 kB
poem              41 kB
prototype        582 kB
salon           22.7 MB
test             213 kB
zoo              111 kB
admin            348 kB
local           3.13 GB
2 Likes