Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Compute Cloud
    • All tutorials
      • Stopping and starting a VM
      • Resetting a Windows Server VM user password
      • Attaching a disk to a VM
      • Detaching a disk from a VM
      • Moving a VM to a different availability zone
      • Moving a VM to a different folder
      • Moving a VM to a different cloud
      • Adding another network interface to a VM
      • Deleting a network interface from a VM
      • Assigning a public IP address to a VM
      • Unassigning a public IP address from a VM
      • Making a VM public IP address static
      • Reassigning a public IP address from one VM to another
      • Updating the VM internal IP address
      • Updating a VM
      • Changing VM computing resources
      • Changing VM security groups
      • VM maintenance policy management
      • Configuring VM access permissions
      • Linking a service account to a VM
      • Deleting a VM
    • Viewing operations with resources
  • Yandex Container Solution
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  1. Step-by-step guides
  2. Managing a VM
  3. Unassigning a public IP address from a VM

Unassigning a public IP address from a VM

Written by
Yandex Cloud
Updated at May 13, 2025

If you have previously assigned a public IP address to a VM network interface, you can unassign it.

Note

When unassigning an IP address that was assigned automatically (a dynamic IP address), you will not be able to assign it to a cloud resource again. To save the IP address for future use, make it static.

Management console
CLI
API
  1. In the management console, select the folder this VM belongs to.
  2. Select Compute Cloud.
  3. Select the VM.
  4. In the window that opens, under Network, click in the top-right corner of the relevant network interface section and select Disassociate public IP address.
  5. In the window that opens, click Delete.

If you do not have the Yandex Cloud (CLI) command line interface yet, install and initialize it.

The folder specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID> command. You can specify a different folder using the --folder-name or --folder-id parameter.

To unassign a public IP address from a VM, run the following CLI command:

yc compute instance remove-one-to-one-nat
  --id=<VM_ID>
  --network-interface-index=<VM_network_interface_number>

Where:

  • --id: VM ID. You can get a list of available VM IDs in the folder using the yc compute instance list CLI command.
  • --network-interface-index: VM network interface number. The default value is 0. To get a list of VM network interfaces and their numbers, run yc compute instance get <VM_ID>.

For more information about the yc compute instance remove-one-to-one-nat command, see the CLI reference.

Use the removeOneToOneNat REST API method for the Instance resource or the InstanceService/RemoveOneToOneNat gRPC API call.

Was the article helpful?

Previous
Assigning a public IP address to a VM
Next
Making a VM public IP address static
Yandex project
© 2025 Yandex.Cloud LLC