Why do data files still exist after Mongodb deletes the database?

  mongodb, question

Why do data files still exist after Mongodb deletes the database?

1kw pieces of data were inserted circularly. Then the database was deleted in rockmongo. However, there are still a lot of files in the data directory, and they are not small.

After deleting the database, the disk still has preallocated space, so it needs to be executed:

db.repairDatabase()

PS: It is not recommended to use the online environment, which may cause excessive load and service interruption.