external help file | Module Name | online version | schema |
---|---|---|---|
SPClientCore.dll-Help.xml |
SPClientCore |
2.0.0 |
Removes a list item.
Remove-KshListItem [-Identity] <ListItem> [<CommonParameters>]
Remove-KshListItem [-Identity] <ListItem> [-RecycleBin] [<CommonParameters>]
The Remove-KshListItem cmdlet removes a list item from the parent list.
PS C:\> Remove-KshListItem -Identity (Get-KshListItem -List (Get-KshList -ListTitle 'Announcements') -ItemId 1)
Removes a list item.
PS C:\> Remove-KshListItem -Identity (Get-KshListItem -List (Get-KshList -ListTitle 'Announcements') -ItemId 1) -RecycleBin
Moves a list item to the recycle bin.
Specifies the list item.
Type: ListItem
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
If specified, moves the item to the recycle bin.
Type: SwitchParameter
Parameter Sets: ParamSet2
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.