
view:remove-column( $schema-name as xs:string, $view-name as xs:string, $column-name as xs:string ) as empty-sequence()
This function removes a column specification from the named view in the named schema.
xquery version "1.0-ml";
import module namespace view = "http://marklogic.com/xdmp/view"
at "/MarkLogic/views.xqy";
view:remove-column("main", "songs", "year")
(: Removes the 'year' column from the 'songs' view in the 'main' schema. :)