Overview
Unpublishes document from all previously published folders and returns current document instanceDocument Document.Unpublish()
Document Document.Unpublish(folderPath: string)
Arguments
string folderPath
Path of folder(s)
Remarks
If folderPath is specified, document is removed from specified folders. Path can be specified as full path. Non existing folders are ignored.
Example
var existingDocument = $Documents.Get(id); // Unpublishing the document under Test\Documents folder path: existingDocument.Unpublish('Test\Documents');
Examples
var existingDocument = $Documents.Get(id); // Unpublishing the document under Test\Documents folder path: existingDocument.Unpublish('Test\Documents');