CmdID / PowerShell / Cmdlets / Remove
Remove-MgEnvironment
Removes Microsoft Graph environment to the settings file Microsoft Graph PowerShell reference
From the Microsoft Graph PowerShell reference 3 parameters Its page in the reference
Parameters
-Confirm, -cfPrompts you for confirmation before running the cmdlet.-NameThe environment name.-WhatIf, -wiShows what would happen if the cmdlet runs.