src/Layer.js
/**
     * Remove this layer from the map. It should be called after the layer is loaded. Otherwise, it will not delete the layer.
     *
     * @memberof carto.Layer
     * @instance
     * @api
     */
Remove this layer from the map. It should be called after the layer is loaded. Otherwise, it will not delete the layer.
Remove this layer from the map . It should be called after the layer is loaded . Otherwise it will not delete the layer .
remove () {
        if (this.map) {
            this.map.removeLayer(this.id);
        }
    }
remove ( ) { if ( this . map ) { this . map . removeLayer ( this . id ) ; } }
Remove this layer from the map.
Remove this layer from the map .