Unfortunately, the only option here is to copy the collection, delete the old one and rename the new one:
$> db.collection_name.copyTo('collection_name2') $> db.collection_name.isCapped() true $> db.collection_name.drop() $> db.collection_name2.renameCollection('collection_name') $> db.collection_name.isCapped() false
source share