Skip to content

Remove-MgContact missing in 2.30 #3397

Description

@SongsForTheDEV

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_

Activity

  1. gavinbarron commented on Oct 3, 2025

    @gavinbarron
    Member

    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.

  2. gavinbarron commented on Oct 3, 2025

    @gavinbarron
    Member

    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.

  3. gavinbarron commented on Oct 20, 2025

    @gavinbarron
    Member

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

  4. gavinbarron commented on Jan 28, 2026

    @gavinbarron
    Member

    This has been resolved

     gavinbarron  install-module Microsoft.Graph.Identity.DirectoryManagement -RequiredVersion 2.34.0
     gavinbarron  import-module Microsoft.Graph.Identity.DirectoryManagement -RequiredVersion 2.34.0
     gavinbarron  Get-Command -Module Microsoft.Graph.Identity.DirectoryManagement -Name "remove-mgcontact"
    
    CommandType     Name                                               Version    Source
    -----------     ----                                               -------    ------
    Function        Remove-MgContact                                   2.34.0     Microsoft.Graph.Identity.DirectoryManagement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions