Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Overview

Unpublishes document from all previously published folders and returns current document instance

Document myDocument.Unpublish()

Unpublishes document from specified folders and returns current document instance.

Document myDocument.Unpublish(folderPath: string)

Arguments

string folderPath
Path of folder(s)

Remarks

This method changes Document.State property to "Draft" and saves document.

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');
  • No labels