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

Namespace: CMS.MediaLibrary
Assembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 11.0.0
Syntax
C#
public static void DeleteMediaFile(
	int siteId,
	int libraryId,
	string filePath,
	bool onlyFile = false,
	bool synchronization = false
)

Parameters

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