view.schemaRemove

view.schemaRemove(
   schema-name as String
) as null

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

const view = require('/MarkLogic/views');

view.schemaRemove('main');

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