ISharePointFileServiceDeleteFile Method |
Deletes the file specified by serverRelativeUrl from the SharePoint server.
Deleting a non-existent file within SharePoint site is a void action.
Throws exception when serverRelativeUrl is invalid (does not point within any SharePoint site).
Namespace: CMS.SharePointAssembly: CMS.SharePoint (in CMS.SharePoint.dll) Version: 8.2.23
Syntax void DeleteFile(
string serverRelativeUrl
)
Parameters
- serverRelativeUrl
- Type: SystemString
Server relative URL of the file.
Exceptions See Also