ModuleCommands.MediaLibraryDeleteMediaFile Method |
Deletes media file from file system.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntaxpublic static void MediaLibraryDeleteMediaFile(
int siteID,
int libraryID,
string filePath,
bool onlyFile,
bool synchronization
)
Parameters
- siteID
- Type: System.Int32
Site id - libraryID
- Type: System.Int32
Library id - filePath
- Type: System.String
Sub path to file - onlyFile
- Type: System.Boolean
Indicates if only file should be deleted - synchronization
- Type: System.Boolean
Indicates if method is running by web farms synchronization
See Also