Removes a persistent Script Session from memory.
Remove-ScriptSession -Id <String[]>
Remove-ScriptSession -Session <ScriptSession[]>
Removes a persistent Script Session from memory.
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
Id of the PowerShell session to be removed from memory.
Aliases | |
---|---|
Required? | true |
Position? | named |
Default Value | |
Accept Pipeline Input? | true (ByValue) |
Accept Wildcard Characters? | false |
Session to be removed.
Aliases | |
---|---|
Required? | true |
Position? | named |
Default Value | |
Accept Pipeline Input? | true (ByValue) |
Accept Wildcard Characters? | false |
The input type is the type of the objects that you can pipe to the cmdlet.
- System.String or Spe.Core.Host.ScriptSession
Help Author: Adam Najmanowicz, Michael West
The following removes the script session using the specified Id.
PS master:\> Remove-ScriptSession -Id "Long running script"