Content Studio Web Content Management System
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
DELETECONTAINER permission on the root is required.
[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)
Syntax
Parameters
- connectionId
- Type: ContentStudioConnectionId
A value that identifies the web site - sessionId
- Type: ContentStudio.SecuritySessionId
A value that identifies the user's session. This value usually originates from a call to OpenSession(ConnectionId). - unitId
- Type: ContentStudio.DocumentUnitId
An identifier to the unit to delete.
Exceptions
Exception | Condition |
---|---|
CSException | A 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. |
SqlException | An error occurred when executing the command against the Content Studio database |
Content Studio permissions
See Also