The Remove-MDMInventoryItemcmdlet removes the specified device inventory collection task from the task list on the server.
If you created the task with the New-MDMInventoryItemcmdlet, the Remove-MDMInventoryItemcmdlet removes the task from the server uniform resource identifier (URI) table. After the command removes this task, the Restore-MDMInventoryDefaultscmdlet does not restore the task.
Syntax
Remove-MDMInventoryItem [[-Identity] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]  | 
Parameters
The following describes the Remove-MDMInventoryItemcmdlet parameters.
- Identity <String>
 - 
The name of an existing device inventory collection element. This is the name that you specified when you created the element by using the New-MDMInventoryItemcmdlet.
 
- WhatIf
 - 
Informs you of what changes would be made if the action were to be performed (the cmdlet is not executed).
 
- Confirm
 - 
Prompts you for confirmation before the cmdlet executes.
 
- CommonParameters
 - 
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, and -OutVariable. For more information, at the Mobile Device Manager (MDM) Shell prompt, type get-help about_commonparameters.
 
Input Type
The Remove-MDMInventoryItemcmdlet accepts through the pipeline the name of the device inventory collection task to remove.
Output Type
None
Examples
This Remove-MDMInventoryItemcommand example removes the device data inventory task that has the name, processor.
 Copy Code
 | 
|
|---|---|
C:\PS>Remove-MDMInventoryItem -identity "processor"  | 
|
Cmdlet Help
To view this information online, at the MDM Shell prompt, type:
get-help Remove-MDMInventoryItem -detailed, or get-help Remove-MDMInventoryItem -full
See Also