Click or drag to resize
ModuleCommandsMediaLibraryDeleteMediaFile Method
Deletes media file from file system.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 12.0.0
Syntax
C#
public static void MediaLibraryDeleteMediaFile(
	int siteID,
	int libraryID,
	string filePath,
	bool onlyFile,
	bool synchronization
)

Parameters

siteID
Type: SystemInt32
Site id
libraryID
Type: SystemInt32
Library id
filePath
Type: SystemString
Sub path to file
onlyFile
Type: SystemBoolean
Indicates if only file should be deleted
synchronization
Type: SystemBoolean
Indicates if method is running by web farms synchronization
See Also