Click or drag to resize
ForumAttachmentInfoProviderDeleteAttachmentFile Method
Delete forum attachment file stored in the file system.

Namespace: CMS.Forums
Assembly: CMS.Forums (in CMS.Forums.dll) Version: 12.0.0
Syntax
C#
public static void DeleteAttachmentFile(
	string siteName,
	string attachmentFileName,
	bool deleteDirectory,
	bool synchronization
)

Parameters

siteName
Type: SystemString
Site name
attachmentFileName
Type: SystemString
Name of the file to be deleted
deleteDirectory
Type: SystemBoolean
Determines whether delete specified directory or not
synchronization
Type: SystemBoolean
Indicates whether the method is called due to synchronization
See Also