
MarkLogic 9 Product Documentation
view.removeColumnview.removeColumn(
   schema-name as String,
   view-name as String,
   column-name as String
) as null
Summary
This function removes a column specification from the named 
  view in the named schema.
	  
	  
	
	  
	    | Parameters | 
	  
	
	  
	    | schema-name | 
	    
    The name of the schema specification containing the view.
     | 
	  
	  
	    | view-name | 
	    
    The name of the view from which the column specification is to be removed.
     | 
	  
	  
	    | column-name | 
	    
    The name of the column specification to be removed from the view.
     | 
	  
	
Example
const view = require('/MarkLogic/views');
view.removeColumn('main', 'songs', 'year');  
// Removes the 'year' column from the 'songs' view in the 'main' schema.
     
   
    Copyright © 2025 MarkLogic Corporation. MARKLOGIC is a
    registered trademark of MarkLogic Corporation.