Click or drag to resize
AttachmentInfoProviderDeleteAttachmentInfo Method (AttachmentInfo, Boolean)

Note: This API is now obsolete.

Deletes specified attachment.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use IAttachmentInfoProvider.Delete(AttachmentInfo) instead. To get an instance of the interface's implementation, use dependency injection or access the instance directly - AttachmentInfo.Provider.")]
public static void DeleteAttachmentInfo(
	AttachmentInfo atInfo,
	bool deletePhysicalFile = true
)

Parameters

atInfo
Type: CMS.DocumentEngineAttachmentInfo
Attachment object
deletePhysicalFile (Optional)
Type: SystemBoolean
Delete physical file
See Also