@classmethod
def delete_by_id(cls, object_id):
    """
        Deletes a document identified by the object id
        :param object_id:
        :return: true if the object was deleted
        """
    delete_result = cls.get_collection().delete_one({'_id': object_id})
    return delete_result.deleted_count
