How to drop a databse whose name starts with a space

I restored a DB in my local machine but I made a mistake and put an extra space between -d flag and DB name. command I used looks like this

mongorestore -d  NHM-local NHM-db-prod/

so the database that was created also had an extra space
image

and now I am unable to connect to this DB via mongoose and nodeJS or DROP this via mongoDB Compass

image

putting space while dropping this database makes no difference.

please suggest me some way to drop this DB.

Can you post the versions of your mongodb and mongorestore ?

MongoDB version - 6.0.5
mongorestore version - 100.7.0

I’m struggling to reproduce. What are the OS and shell where you are running mongorestore?

Are you able to reproduce from dump through to restore?