Delete Method
Deletes the specified item from the list or document library.
Syntax
<Method ID="Text">
<SetList Scope="Request">GUID</SetList>
<SetVar Name="Cmd">Delete</SetVar>
<SetVar Name="ID">Integer</SetVar>
<SetVar Name="NextUsing">URL</SetVar>
<SetVar Name="owsfileref">URL</SetVar>
</Method>
Parameters
ID = "Text"
Scope = "Request"
Name = "Cmd"
Name = "ID"
Name = "NextUsing"
Name = "owsfileref"
Decoded
<Method ID="0,Delete">
<SetList Scope="Request">6beeefcd-866d-4fc7-94b9-94e6297386bc</SetList>
<SetVar Name="Cmd">Delete</SetVar>
<SetVar Name="ID">45</SetVar>
<SetVar Name="owsfileref">http://Server_Name/sites/Site/Document_Library/File</SetVar>
</Method>
Return Value
Success
Returns the code attribute, which is a signed-decimal representation of an HRESULT, such as: <Result ID="0,Delete" Code="0" />
Error
Returns an XML-encoded Unicode (UTF-8) text string. For more information, see Error Message Format for Windows SharePoint Services.