title | description | ms.assetid | ms.tgt_platform | keywords | topic_type | api_name | api_location | api_type | ms.topic | ms.date | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Session.Delete method (WSManDisp.h) |
Deletes the resource specified in the resource URI. |
8803d35d-674c-483d-866b-37129102c7ce |
multiple |
|
|
|
|
|
reference |
05/31/2018 |
Deletes the resource specified in the resource URI.
Session.Delete( _
ByVal resourceUri, _
[ ByVal flags ] _
)
-
resourceUri [in]
-
The URI of the resource to be deleted. You can also use a ResourceLocator object to specify the resource.
-
flags [in, optional]
-
Reserved for future use. Must be set to 0.
This method does not return a value.
The following syntax is used to call this method.
session.Delete("<resourceUri>")
The following VBScript code example deletes the listeners configured for HTTP transport.
Set objWsman = CreateObject( "WSMan.Automation" )
Set objSession = objWsman.CreateSession
strResource = "http://schemas.microsoft.com/wbem/wsman/1/" &_
"config/Listener?Address=*+Transport=HTTP"
objSession.Delete(strResource)
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 |
Header |
|
IDL |
|
Library |
|
DLL |
|