

def delete_object(self, uid, token, obj_id):
    '\n        Add a object for a user.\n\n        :param obj_id: Identifier of the object.\n        :param uid: User id.\n        :param token: Access token.\n        '
    database = self.client[uid]
    database.authenticate(uid, token)
    collection = database['data_objects']
    collection.remove({
        '_id': bson.ObjectId(obj_id),
    })

dataset/ETHPy150Open tmetsch/suricate/suricate/data/object_store.py MongoStore.delete_object/original