IWSManSession::Delete method (wsmandisp.h)

Deletes the resource specified in the resource URI.

Syntax

HRESULT Delete(
  [in]           VARIANT resourceUri,
  [in, optional] long    flags
);

Parameters

[in] resourceUri

The URI of the resource to be deleted. You can also use an IWSManResourceLocator object to specify the resource.

[in, optional] flags

Reserved for future use. Must be set to 0.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

   
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header wsmandisp.h
Library WSManDisp.tlb
DLL WSMAuto.dll

See also

IWSManSession

Session.Delete