Remove-MSDefects
Remove (delete) a list of Defects. Use the -UnDelete switch to Undelete instead. When a Defect is Deleted it is moved to a Delete queue to be deleted at a later date. Deleting these Defects again with the -AllowRealDelete will truly delete them from MS.
Syntax
Remove-MSDefects -DefectIds (Int32[]) [-BatchSize (Int32)] [-AllowRealDelete] [-UnDelete]
Examples
## Delete a list of Defects (add to delete queue)
Remove-MSDefects -DefectIds @(1000,1001,1002)
## Undelete a list of Defects
Remove-MSDefects -DefectIds @(1000,1001,1002) -UnDelete
## Force a real delete of the Defects. The first command adds them to the delete queue, the second forces the delete to be processed immediately.
Remove-MSDefects -DefectIds @(1000,1001,1002)
Remove-MSDefects -DefectIds @(1000,1001,1002) -AllowRealDelete