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

Required?

true

Position?

named

Default Value

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Session <ScriptSession[]>

Session to be removed.

Aliases

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

The following removes the script session using the specified Id.

PS master:\> Remove-ScriptSession -Id "Long running script"

Last updated