POST https://compute.googleapis.com/compute/beta/projects/PROJECT_ID/zones/ZONE/instances/INSTANCE_NAME/deleteNetworkInterface?networkInterfaceName=DYNAMIC_NIC_NAME
Substitua:
PROJECT_ID: o ID do projeto que contém a instância.
ZONE: a zona que contém a instância
INSTANCE_NAME: o nome da instância de que você quer excluir a
NIC dinâmica.
DYNAMIC_NIC_NAME: o nome da NIC dinâmica
a ser excluída, como nic0.2
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-19 UTC."],[],[],null,["# Delete Dynamic NICs from an instance\n====================================\n\n|\n| **Preview\n| --- Dynamic NICs**\n|\n|\n| This feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\nThis page describes how to delete a Dynamic Network Interface (NIC) from an existing virtual machine (VM) instance.\n\n\u003cbr /\u003e\n\nFor an overview of multi-NIC, see\n[Multiple network interfaces](/vpc/docs/multiple-interfaces-concepts).\n\nTo view an instance's existing network interfaces, see\n[View network interfaces for an instance](/compute/docs/instances/view-network-properties#view_network_interfaces_for_an_instance).\n\nDelete a Dynamic NIC\n--------------------\n\nDelete Dynamic NICs by using the following procedures. To prevent\na possible [error when deleting a Dynamic NIC by instance update](/vpc/docs/troubleshoot-multiple-interfaces#instance-update-dynamic-nic),\ndon't delete Dynamic NICs from individual instances by updating\ninstance properties.\n**Note:** You can't delete a Dynamic NIC by using the Google Cloud console. You must use the gcloud CLI or the API. \n\n### gcloud\n\nTo delete a Dynamic NIC from an existing instance, use the\n[`instances network-interfaces delete` command](/sdk/gcloud/reference/beta/compute/instances/network-interfaces/delete). \n\n```\ngcloud beta compute instances network-interfaces delete INSTANCE_NAME \\\n --zone=ZONE \\\n --network-interface=DYNAMIC_NIC_NAME\n\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eINSTANCE_NAME\u003c/var\u003e: the name of the instance to create\n- \u003cvar translate=\"no\"\u003eZONE\u003c/var\u003e: the zone of the instance\n- \u003cvar translate=\"no\"\u003eDYNAMIC_NIC_NAME\u003c/var\u003e: the name of the Dynamic NIC to delete, such as `nic0.2`\n\nTo delete Dynamic NICs from an a managed instance group (MIG), see[`instance-groups managed set-instance-template`](/sdk/gcloud/reference/beta/compute/instance-groups/managed/set-instance-template).\n\n### API\n\nTo delete a Dynamic NIC from an existing instance, use the\n[`instances.deleteNetworkInterface` method](/compute/docs/reference/rest/beta/instances/deleteNetworkInterface). \n\n```\nPOST https://compute.googleapis.com/compute/beta/projects/PROJECT_ID/zones/ZONE/instances/INSTANCE_NAME/deleteNetworkInterface?networkInterfaceName=DYNAMIC_NIC_NAME\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the ID of the project that contains the instance\n- \u003cvar translate=\"no\"\u003eZONE\u003c/var\u003e: the zone that contains the instance\n- \u003cvar translate=\"no\"\u003eINSTANCE_NAME\u003c/var\u003e: the name of the instance to delete the Dynamic NIC from\n- \u003cvar translate=\"no\"\u003eDYNAMIC_NIC_NAME\u003c/var\u003e: the name of the Dynamic NIC to delete, such as `nic0.2`\n\nTo delete Dynamic NICs from an a managed instance group (MIG), see [`instanceGroupManagers.setInstanceTemplate`](/compute/docs/reference/rest/v1/instanceGroupManagers/setInstanceTemplate)."]]