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
    • 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.
All solutions
    • All solutions for VPC
    • Fixing errors at cloud network deletion
    • Errors in geographic attribution of Yandex Cloud resource IP addresses
    • Resolving issues with network connection speed when accessing cloud resources
    • Resolving errors when setting up TLS connections on VMs
    • Could not delete a security group
    • Resolving issues with sending emails via SMTP from external IP addresses
    • How to disable DDoS protection
    • Moving an external static IP address to another cloud
    • Monitoring incoming or outgoing VM traffic
    • How to determine the speed of communication channels
    • Checking for restrictions on traffic, connection speed, and bandwidth
    • How to change the network or subnet for an MDB cluster
    • How to read the "Connections quota utilization" chart
    • How to assign a fixed IP address to a NAT gateway
    • How to enable Egress NAT
    • How to route traffic between two cloud networks
    • Enabling advanced DDoS protection

In this article:

  • Issue description
  • Solution
  1. VPC
  2. Could not delete a security group

Could not delete a security group

Written by
Yandex Cloud
Updated at November 27, 2023
  • Issue description
  • Solution

Issue descriptionIssue description

You cannot delete the security group and see this error:

code = FailedPrecondition desc = Security group with id *** not empty

SolutionSolution

Before deleting a security group, detach it from the VM instance.

To do this:

  1. In the management console, go to Compute Cloud.
  2. Select the target VM instance.
  3. In the VM settings, scroll down to the network settings.
  4. Click on the ··· button and in the drop-down list, select Change network interface.
  5. Detach the security group.
  6. Click Save.

Was the article helpful?

Previous
Resolving errors when setting up TLS connections on VMs
Next
Resolving issues with sending emails via SMTP from external IP addresses
© 2025 Direct Cursus Technology L.L.C.