mongodb delete all documents

C
db.collection.delete_many( { } );
Source

Also in C: