external help file | Module Name | online version | schema |
---|---|---|---|
PSProjectStatus-help.xml |
PSProjectStatus |
2.0.0 |
Remove a task from the PSProject file.
Remove-PSProjectTask [-TaskID] <Int32[]> [-Path <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
You can manually remove tasks from the PSProject file, or you can use this function. Specify a task ID and it will be removed from the PSProject file.
PS C:\scripts\PSProjectStatus> Remove-PSProjectTask -TaskID 4,2
Remove tasks 4 and 2 from the PSProject file.
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Enter the parent path to the psproject.json file, e.g. c:\scripts\mymodule.
Type: String
Parameter Sets: (All)
Aliases: FullName
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Enter the task ID
Type: Int32[]
Parameter Sets: (All)
Aliases: ID
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
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.