ModuleCommandsMediaLibraryDeleteMediaFile Method |
Deletes media file from file system.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 10.0.0
Syntaxpublic 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