Loading TOC...

MarkLogic 9 Product Documentation
pkg:delete

pkg:delete(
   $pkgname as xs:string
) as empty-sequence()

Summary

[DEPRECATED: use cma:generate-config and cma:apply-config instead.]

Deletes the named package.

Parameters
pkgname The name of the package to delete.

Example


xquery version "1.0-ml"; 
 
import module namespace pkg = "http://marklogic.com/manage/package" 
      at "/MarkLogic/manage/package/package.xqy";

pkg:delete("mypackage")

(: Deletes the package named, 'mypackage'. :)
    

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