Remove-MSModuleItems
Remove (delete) a list of Apps,Users,Devices etc. Use the -UnDelete switch to Undelete instead. When an item is Deleted is moved to a Delete queue to be deleted at a later date. Deleting these items again with the -AllowRealDelete will truly delete them from MS.
Syntax
Remove-MSModuleItems -Module (String) -Ids (Int32[]) [-BatchSize (Int32)] [-AllowRealDelete] [-UnDelete]