UnitManagerDelete Method (ConnectionId, SessionId, UnitId) Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Deletes a unit from Content Studio and the underlying file system

Namespace: ContentStudio.Document
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)

public void Delete(
	ConnectionId connectionId,
	SessionId sessionId,
	UnitId unitId


Type: ContentStudioConnectionId
A value that identifies the web site
Type: ContentStudio.SecuritySessionId
A value that identifies the user's session. This value usually originates from a call to OpenSession(ConnectionId).
Type: ContentStudio.DocumentUnitId
An identifier to the unit to delete.

CSExceptionA business rule was violated in the underlying Content Studio database and can be one of the following values. ---- 1001 The SessionID is invalid. - or - 1002 Permission denied. - or - 1501 The unit can not be deleted since there are categories that belongs to it. - or - 1505 Could not delete unit. The unit does not exist. - or - 1503 The unit has been deleted from Content Studio but the folder could not be deleted from the file system. This must be done manually. - or - 1504 The unit can not be deleted since is marked as global unit.
SqlExceptionAn error occurred when executing the command against the Content Studio database
Content Studio permissions

DELETECONTAINER permission on the root is required.
See Also