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
    • AI Studio
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Virtual Private Cloud
  • Getting started
    • All guides
      • Reserving a static public IP address
      • Converting a dynamic public IP address to static
      • Converting a static public IP address to dynamic
      • Moving an address between folders
      • Getting information about an IP address
      • Deleting a static public IP address
    • Enabling a software-accelerated network
    • Chart of network connections
    • Viewing operations with resources
  • DDoS Protection
  • Access management
  • Pricing policy
  • Terraform reference
  • Audit Trails events
  • Release notes
  • FAQ
  1. Step-by-step guides
  2. IP address
  3. Deleting a static public IP address

Deleting a static public IP address

Written by
Yandex Cloud
Updated at June 9, 2025

Alert

Before deleting a static IP address, you should release it by deleting the resource it is assigned to.
If deletion protection is enabled for the IP address, disable it first.
You cannot restore an address after it is deleted.

Management console
CLI
Terraform
API
  1. In the management console, go to the folder where you need to delete a static address.
  2. In the list of services, select Virtual Private Cloud.
  3. In the left-hand panel, select IP addresses.
  4. Click next to the IP address you need:
    • Select Delete.
    • (Optional) Select Disable deletion protection if protection is enabled and click Disable.
  5. In the window that opens, confirm by clicking Delete.

If you do not have the Yandex Cloud CLI installed yet, install and initialize it.

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

  1. See the description of the CLI command for deleting an address:

    yc vpc address delete --help
    
  2. Get a list of addresses in the default folder:

    yc vpc address list
    

    Result:

    +----------------------+------+----------------+----------+-------+
    |          ID          | NAME |    ADDRESS     | RESERVED | USED  |
    +----------------------+------+----------------+----------+-------+
    | e9b6un9gkso6******** |      | 178.154.253.52 | true     | false |
    +----------------------+------+----------------+----------+-------+
    
  3. Delete the address by specifying its ID:

    yc vpc address delete e9b6un9gkso6********
    

With Terraform, you can quickly create a cloud infrastructure in Yandex Cloud and manage it using configuration files. These files store the infrastructure description written in HashiCorp Configuration Language (HCL). If you change the configuration files, Terraform automatically detects which part of your configuration is already deployed, and what should be added or removed.

Terraform is distributed under the Business Source License. The Yandex Cloud provider for Terraform is distributed under the MPL-2.0 license.

For more information about the provider resources, see the documentation on the Terraform website or its mirror.

If you do not have Terraform yet, install it and configure its Yandex Cloud provider.

To delete a static public IP address created with Terraform:

  1. Open the Terraform configuration file and delete the fragment with the static public IP address description.

    Example of a static public IP address description in the Terraform configuration:

    ...
    resource "yandex_vpc_address" "addr" {
      name = "exampleAddress"
      external_ipv4_address {
        zone_id = "ru-central1-a"
      }
    }
    ...
    
  2. In the command line, go to the directory with the Terraform configuration file.

  3. Check the configuration using this command:

    terraform validate
    

    If the configuration is correct, you will get this message:

    Success! The configuration is valid.
    
  4. Run this command:

    terraform plan
    

    The terminal will display a list of resources with their parameters. No changes will be made at this step. If the configuration contains any errors, Terraform will point them out.

  5. Apply the configuration changes:

    terraform apply
    
  6. Confirm the changes: type yes into the terminal and press Enter.

    You can check the update using the management console or this CLI command:

    yc vpc address list
    

To delete a static IP address, use the delete REST API method for the Address resource or the AddressService/Delete gRPC API call, and provide the ID of the IP address you are deleting in the addressId request parameter.

To get the address ID, use the list REST API method for the Address resource or the AddressService/List gRPC API call and provide the folder ID in the folderId request parameter.

To learn how to find out the folder ID, see Getting the folder ID.

Was the article helpful?

Previous
Getting information about an IP address
Next
Creating a static route
© 2025 Direct Cursus Technology L.L.C.