Can not delete the collection from the shell,
The thing that the collection is available and my php script is accessing it (selecting|updating)
But when I us
For some reason the double quotes "_registration" did not workfor me .. but single quote '_registration' worked
You can also use:
db["_registration"].drop()
which syntax works in JS as well.
The problem is not with deleting the collection. The problem is with accessing the collection. So you would not be able to update, find or do anything with it from the shell. As it was pointed in mongodb JIRA, this is a bug when a collection has characters like _, - or .
Nevertheless this type of names for collections is acceptable, but it cause a problem in shell.
You can delete it in shell with this command:
db.getCollection("_registration").drop()
or this
db['my-collection'].drop()
but I would rather rename it (of course if it is possible and will not end up with a lot of changing).