Loading TOC...

view.removeById

view.removeById(
   $view-id as (Number|String)
) as null

Summary

This function removes the view with the specified id.

Parameters
$view-id The id of the view to be removed.

Example

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

view.removeById(5423110979916486998);

// Remove the view with the specified id.
     
   

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