msgraph-sdk-powershell icon indicating copy to clipboard operation
msgraph-sdk-powershell copied to clipboard

Remove-MgContact missing in 2.30

Open SongsForTheDEV opened this issue 3 months ago • 3 comments

Describe the bug

In version 2.30 of the module Microsoft.Graph.Identity.DirectoryManagement the function Remove-MgContact is missing. Further MgContact functions are still included, so I don't think that these functions moved to a different module.

Name

Confirm-MgContactMemberGroup Confirm-MgContactMemberObject Get-MgContact Get-MgContactById Get-MgContactCount Get-MgContactDelta Get-MgContactDirectReport Get-MgContactDirectReportAsOrgContact Get-MgContactDirectReportAsUser Get-MgContactDirectReportCount Get-MgContactDirectReportCountAsOrgContact Get-MgContactDirectReportCountAsUser Get-MgContactManager Get-MgContactMemberGroup Get-MgContactMemberObject Get-MgContactMemberOf Get-MgContactMemberOfAsAdministrativeUnit Get-MgContactMemberOfAsGroup Get-MgContactMemberOfCount Get-MgContactMemberOfCountAsAdministrativeUnit Get-MgContactMemberOfCountAsGroup Get-MgContactServiceProvisioningError Get-MgContactServiceProvisioningErrorCount Get-MgContactTransitiveMemberOf Get-MgContactTransitiveMemberOfAsAdministrativeUnit Get-MgContactTransitiveMemberOfAsGroup Get-MgContactTransitiveMemberOfCount Get-MgContactTransitiveMemberOfCountAsAdministrativeUnit Get-MgContactTransitiveMemberOfCountAsGroup Test-MgContactProperty

I tested this on different machines and I could recognize that Remove-MgContact is available in Version 2.25

Expected behavior

The function Remove-MgContact should be available.

How to reproduce

Get-Command -Module Microsoft.Graph.Identity.DirectoryManagement -Name "remove-mgcontact"

SDK Version

2.30

Latest version known to work for scenario above?

2.25

Known Workarounds

No response

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

SongsForTheDEV avatar Sep 17 '25 20:09 SongsForTheDEV

Which sort of contact are you looking to delete? I ask as there are quite a few in Microsoft Graph.

In v2.26.0, which is now unpublished due to it having many problems, many cmdlets were moved to different locations, a choice which I wish had been managed as a breaking change, but This is what my team have inherited.

We have a Remove-MgPersonalContact cmdlet in the Microsoft.Graph.PersonalContacts module.

gavinbarron avatar Oct 03 '25 15:10 gavinbarron

Ok, looking closer at this I see that in v2.29.0 the delete verb was removed from the OpenAPI spec used to generate the PowerShell SDK.

We'll need to back track this to see why that (and the other verbs) were removed in that version.

gavinbarron avatar Oct 03 '25 15:10 gavinbarron

We have identified an issue with the metadata being used to generate our SDKs and this is currently being worked on.

gavinbarron avatar Oct 20 '25 21:10 gavinbarron