How to drop collection with name include character "�"?

I think I know how you can do this in the shell. At least the old shell …

 array = db.getCollectionNames();
 array[4]  // check which one is the 'bad' one
 db.getCollection(array[4]).drop();

I think passing the name through without any cutting and pasting may successfully access the collection…

Asya

4 Likes