Delete device group

Delete an Azure Sphere device group using the Azure portal or Azure CLI.

Note

A device group can only be deleted when the user has Contributor permissions for the catalog, and the device group is empty and contains no devices.

Use the portal

  1. - Sign in to the Azure Portal. - To locate the Azure Sphere service, in the top search bar, enter and select Azure Sphere. The Azure Sphere page is displayed..
  2. Go to the Device groups page to list available device groups.
  3. Select the row of the device group that you want to edit, then select Delete from the menu at the top of the page. Or select ... at the right end of the line, then select Delete.
  4. Select Yes on the confirmation message to confirm. The device group in the product is removed.

Use the CLI

Use the az sphere device-group delete command.

az sphere device-group delete --product MyProduct --device-group MyDeviceGroup

Tip

We recommend that you configure the default values for the subscription, resource group, and catalog parameters. This helps reduce redundancy and can significantly shorten CLI command syntax.

Unless you have set the active subscription, the --subscription parameter will be required for all commands. You can set the active subscription using the command az account set --subscription <subscription-name>.