Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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()


An error occurred while deleting the file.

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

© 2015 Microsoft