MediaFileInfoProviderDeleteMediaFile Method |
Deletes media file from file system.
Namespace: CMS.MediaLibraryAssembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 9.0.0
Syntax 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