Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Delete Method
Collapse the table of content
Expand the table of content

IWSManSession::Delete method

Deletes the resource specified in the resource URI.

Syntax


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

Parameters

resourceUri [in]

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

flags [in, optional]

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

Redistributable

WinRM 1.1 (Windows Server 2003 R2, or Windows Server 2003 with SP1)

Header

Wsmandisp.h

IDL

Wsmandisp.idl

Library

WSManAutomation.lib

DLL

Wsmauto.dll

See also

IWSManSession
Session.Delete

 

 

Show:
© 2015 Microsoft