#NEWLINE# @ classmethod #NEWLINE# def delete_by_id( cls , oid ) : #NEWLINE# #INDENT# 'Delete a document from collection by its ``ObjectId``,\n        ``oid`` can be string or ObjectId' #NEWLINE# if oid : #NEWLINE# #INDENT# cls . collection . remove ( ObjectId ( cls ) )