Click or drag to resize
SharePointFileInfoProviderDeleteFile Method
Deletes the specified file on the SharePoint server and from the local library. Deleting a non-existent file within SharePoint library (i.e. file is out of sync) deletes the file from the local library as well.

Namespace: CMS.SharePoint
Assembly: CMS.SharePoint (in CMS.SharePoint.dll) Version: 8.2.23
Syntax
C#
public static void DeleteFile(
	SharePointFileInfo fileInfo
)

Parameters

fileInfo
Type: CMS.SharePointSharePointFileInfo
SharePoint file to be deleted
Exceptions
ExceptionCondition
SharePointConnectionNotFoundExceptionThrown when the SharePoint library has no valid connection defined.
ExceptionThrown in case of unexpected error condition.
See Also