outlineWidth.setValue(0) not working

var dataSource = new Cesium.GeoJsonDataSource();
    viewer.dataSources.add(dataSource);

    dataSource.loadUrl($scope.url).then(function() {
        var entities = dataSource.entities.entities;
        var max = findMax(entities);

        //Get the array of entities
        var entities = dataSource.entities.entities;
        for (var i = 0; i < entities.length; i++) {
            var entity = entities[i];
           
            entity.polygon.outlineWidth.setValue( 0 );
        }
    });

I want to see polygons without outline.

entity.polygon.outline = new Cesium.ConstantProperty(false); is the correct way to do this.