def delete(self, obj):
        """Required functionality."""
        del_id = obj.get_id()
        if not del_id:
            return

        coll = self.get_collection(obj.__class__.get_table_name())
        coll.delete_one({"_id": del_id})
def delete ( self , obj ) : del_id = obj . get_id ( ) if not del_id : return coll = self . get_collection ( obj . __class__ . get_table_name ( ) ) coll . delete_one ( { "_id" : del_id } )
Required functionality.