Export (0) Print
Expand All

SPFile.Delete method

Deletes the file object.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public void Delete()

ExceptionCondition
SPException

An error occurred while deleting the file.

If the file does not exist, the Delete method silently fails and does not throw an exception.

Show:
© 2014 Microsoft