PdcSharepoint.DeleteFile
Jump to navigation
Jump to search
Declaration
DeleteFile(strItemId As String) As Boolean
Description
Remove a file from Sharepoint, it will be removed from the directory targetted by the name passed to the constructor (pdcApplication.Sharepoint)
If unsuccessful, PdcApplication.LastError will contain an error message
Code example
Dim sp As PDCEXT.PdcSharepoint = PDC.App.Sharepoint("scriptLocation")
Dim resultId As String = sp.UploadFile("C:\files\test.txt")
sp.DeleteFile(resultId)
Availability
Available since 2021R4