Sitecore PowerShell Extensions
Slack
YouTube
Stack Exchange
Donate
Search…
Introduction
Disclaimer
Installation
Training
Community
Interfaces
Working with Items
Modules
Remoting
Security
Releases
Troubleshooting
Code Snippets
Appendix
Common
Indexing
Packaging
Presentation
Provider
Security
Session
Get-ScriptSession
Get-Session
Receive-ScriptSession
Remove-ScriptSession
Remove-Session
Start-ScriptSession
Stop-ScriptSession
Wait-ScriptSession
Powered By
GitBook
Remove-ScriptSession
Removes a persistent Script Session from memory.
Syntax
Remove-ScriptSession -Id <String[]>
Remove-ScriptSession -Session <ScriptSession[]>
Detailed Description
Removes a persistent Script Session from memory.
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
Parameters
-Id <String[]>
Id of the PowerShell session to be removed from memory.
Aliases
Text
Required?
true
Position?
named
Default Value
​
Accept Pipeline Input?
true (ByValue)
Accept Wildcard Characters?
false
-Session <ScriptSession[]>
Session to be removed.
Aliases
Text
Required?
true
Position?
named
Default Value
​
Accept Pipeline Input?
true (ByValue)
Accept Wildcard Characters?
false
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
System.String or Spe.Core.Host.ScriptSession
Notes
Help Author: Adam Najmanowicz, Michael West
Examples
EXAMPLE
1
The following removes the script session
using
the specified Id
.
2
​
3
PS
master:\>
Remove-ScriptSession
-
Id
"Long running script"
Copied!
Related Topics
​
Get-ScriptSession
​
​
Receive-ScriptSession
​
​
Start-ScriptSession
​
​
Stop-ScriptSession
​
​
Wait-ScriptSession
​
​
https://git.io/spe
​
​
https://blog.najmanowicz.com/2014/10/26/sitecore-powershell-extensions-persistent-sessions/
​
Previous
Receive-ScriptSession
Next
Remove-Session
Last modified
10d ago
Export as PDF
Copy link
Contents
Syntax
Detailed Description
Parameters
-Id <String[]>
-Session <ScriptSession[]>
Inputs
Notes
Examples
EXAMPLE
Related Topics