Remove-ISItem
Deletes the specified items.
Syntax
Remove-ISItem [-pInfo] <Object> [-WhatIf] [-Confirm] [<CommonParameters>]
Detailed Description
The Remove-ISItem function deletes one or more items. Both packages and SSIS folders are supported.
Related Commands
Parameters
Name |
Description |
Required? |
Pipeline Input |
Default Value |
pInfo |
|
true |
true (ByValue) |
|
WhatIf |
|
false |
false |
|
Confirm |
|
false |
false |
|
Input Type
Microsoft.SqlServer.Dts.Runtime.PackageInfo
You can pipe pInfo PackageInfo to Remove-ISItem.
Return Values
None
This function does not generate any output.
Examples
EXAMPLE 1
get-isitem '\' 'msdb' 'Z002\sql2k8' | where {$_.name -like "sqlpsx*"} | remove-isitem
This command first gets items stored on the root path of the SSIS server Z002\SQL2K8 where the name matches sqlpsx and then removes the items. Both packages and folders that match the criteria will be removed from the SSIS server.