Click or drag to resize
DocumentHelper.DeleteAttachment Method (TreeNode, Guid)
Deletes attachment from the given document node, including versioning consideration.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 12.0.0
Syntax
C#
public static void DeleteAttachment(
	TreeNode node,
	Guid attachmentGuid
)

Parameters

node
Type: CMS.DocumentEngine.TreeNode
Document node
attachmentGuid
Type: System.Guid
Attachment GUID
Exceptions
ExceptionCondition
InvalidOperationExceptionDeleting of attachment variants is not supported. Use AttachmentInfoProvider or AttachmentHistoryInfoProvider to handle attachment variants.
See Also