Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex BareMetal
    • All guides
      • Creating a VRF
      • Creating a private subnet
      • Ordering a dedicated public subnet
      • Deleting a dedicated public subnet
      • Creating a private connection to cloud networks
      • Creating a static route
    • Overview
      • Overview
      • Stock server configurations
      • Custom server configuration
      • On-request server configuration
      • Overview
      • Public network
      • Private network
      • DHCP
      • MC-LAG
      • Restrictions in BareMetal networks
      • Overview
      • Images
      • Access management
      • Additional server settings
      • Management console
      • Monitoring metrics
    • Quotas and limits
  • Pricing policy
  • FAQ
  1. Step-by-step guides
  2. Network
  3. Deleting a dedicated public subnet

Deleting a dedicated public subnet

Written by
Yandex Cloud
Updated at June 15, 2026

A dedicated public subnet becomes billable the moment it is created. The minimum rent period is one month, so you cannot delete a public subnet during the first month after the order date.

Warning

Deleting a dedicated public subnet is irreversible. Following the deletion, the subnet's IP addresses will return to the Yandex BareMetal shared address pool and can be reassigned to other users.

Management console
CLI
API
  1. In the management console, select the folder the public subnet belongs to.
  2. Go to BareMetal.
  3. In the left-hand panel, select  Public addresses and subnets.
  4. Click next to the subnet and select Delete.
  5. In the window that opens, confirm the deletion.

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

The folder used by default is the one specified when creating the CLI profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also specify a different folder for any command using --folder-name or --folder-id. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

  1. View the description of the command for deleting a dedicated public subnet:

    yc baremetal public-subnet delete --help
    
  2. Get a list of dedicated public subnets in the default folder:

    yc baremetal public-subnet list
    
  3. Delete the subnet:

    yc baremetal public-subnet delete <subnet_ID_or_name>
    

    Where <subnet_ID_or_name> is the ID or name of the dedicated public subnet to delete.

To delete a dedicated public subnet, use the delete REST API method for the PublicSubnet resource or the PublicSubnetService/Delete gRPC API call.

Run this command:

curl -X DELETE \
  -H "Authorization: Bearer <IAM_token>" \
  "https://baremetal.api.cloud.yandex.net/baremetal/v1alpha/publicSubnets/<subnet_ID>"

Where:

  • <IAM_token>: IAM token used for authentication.
  • <subnet_ID>: ID of the dedicated public subnet to delete. To find out the ID, follow this guide.

Result:

{
  "id": "ly5hcnsbx3l4********",
  "description": "Public subnet delete",
  "createdAt": "2025-12-14T14:42:58.375290Z",
  "createdBy": "ajeb9l33h6mu********",
  "modifiedAt": "2025-12-14T14:42:58.375290Z",
  "done": true,
  "metadata": {
    "@type": "type.googleapis.com/yandex.cloud.baremetal.v1alpha.DeletePublicSubnetMetadata",
    "publicSubnetId": "ly52xefxa2hi********"
  },
  "response": {
    "@type": "type.googleapis.com/google.protobuf.Empty"
  }
}

Follow the status of the operation by the done field.

Was the article helpful?

Previous
Ordering a dedicated public subnet
Next
Creating a private connection to cloud networks
© 2026 Direct Cursus Technology L.L.C.