Numeric Collection Name Remove Numeric Collection Name Remove mongodb mongodb

Numeric Collection Name Remove


This should work:

   db["123456789011"].drop()


I was having the same issue with a collection generated by a java class

db["1234"].drop()Wed Jul  9 14:57:39.358 TypeError: Cannot call method 'drop' of undefined

and at the end used the following command to remove it.

db.getCollection('1234').drop()