Click or drag to resize
AttachmentInfoProviderDeleteAttachmentInfo Method (Int32, 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(
	int attachmentId,
	bool deletePhysicalFile = true
)

Parameters

attachmentId
Type: SystemInt32
Attachment id
deletePhysicalFile (Optional)
Type: SystemBoolean
Delete physical file
See Also