< Back
Remove-ItemBackground
Post
NAME Remove-ItemBackground
SYNOPSIS
Removes an item using a background job
SYNTAX
Remove-ItemBackground [-Path] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Removes an item using a background job. This help in the cases where an antivirus might have a lock on an item.
PARAMETERS
-Path <String>
The path to the item that will be deleted in the background
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\># Removes all the items in a temp directory
Remove-ItemBackground "C:\\TEMP\\TempDir"
RELATED LINKS
SYNOPSIS
Removes an item using a background job
SYNTAX
Remove-ItemBackground [-Path] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Removes an item using a background job. This help in the cases where an antivirus might have a lock on an item.
PARAMETERS
-Path <String>
The path to the item that will be deleted in the background
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\># Removes all the items in a temp directory
Remove-ItemBackground "C:\\TEMP\\TempDir"
RELATED LINKS