Loading TOC...

view.remove

view.remove(
   $schema-name as String,
   $view-name as String
) as null

Summary

This function removes the named view from the named schema specification.

Parameters
$schema-name The name of the schema containing the view to be removed.
$view-name The name of the view to be removed.

Example

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

view.remove('main', 'songs');

// Removes the 'songs' view from the 'main' schema.
   

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.