MarkLogic 9 Product Documentation
view:schema-remove

view:schema-remove(
   $schema-name as xs:string
) as empty-sequence()

Summary

This function removes the specified schema. Removing a schema removes all the views that are part of that schema.

Parameters
schema-name The name of the schema to be removed.

Example

  xquery version "1.0-ml"; 
 
  import module namespace view = "http://marklogic.com/xdmp/view" 
      at "/MarkLogic/views.xqy";
 
  view:schema-remove("main")

  (: Remove the schema, named 'main'. :) 
     
Powered by MarkLogic Server | Terms of Use | Privacy Policy