Delete Method

The Delete method deletes the object or its specified child objects.

Sub Delete([pvarChildrenURL As Variant])[C++]
HRESULT Delete(VARIANT* pvarChildrenURL);

[Visual Basic]

Parameters
  • pvarChildrenURL, Optional
    Variant that contains an array of Variants. Each Variant in the array contains a String that contains the Uniform Resource Identifier (URI) of the child object to delete. If the parameter is omitted, then the item itself is deleted from the store. If the parameter is passed, the specified child items are deleted, but the item itself is not deleted.
Return Values

None.

Error Values

If an error is raised, Err.Number is set to one of the values documented on the Error Messages page.

[C++]

Parameters
  • pvarChildrenURL
    [in, optional] Pointer to a VARIANT that contains an array of VARIANTs. Each VARIANT in the array contains a BSTR that contains the Uniform Resource Identifier (URI) of the child object to delete. If the parameter is omitted, then the item itself is deleted from the store. If the parameter is passed, the specified child items are deleted, but the item itself is not deleted.
Return Values

For a list of error messages returned by SharePoint Portal Server, see Error Messages.