NavigationContentFooter
Jump toSuggest an edit
Was this page helpful?

I can't delete my VPC or Private Network

Reviewed on 21 February 2025Published on 21 February 2025

You may want to delete a Private Network or a VPC if you are reorganizing your infrastructure, cleaning up after tests, or if you want to delete a Scaleway Project or account.

This page helps you solve potential errors that prevent successful deletion.

VPC vs Private NetworkLink to this anchor

Understanding this difference is important for successful deletion.

  • The deletion of a Virtual Private Cloud (VPC) is prevented if it still contains Private Networks.
  • The deletion of a Private Network is prevented if it still has attached resources or reserved IPAM IPs.

Resources (Instances, Managed Databases, Elastic Metal servers, etc.) are attached to Private Networks, also known as subnets.

Private Networks are created inside a single VPC. One VPC can contain many Private Networks.

I can’t delete my VPCLink to this anchor

VPC deletion problemsLink to this anchor

You may be attempting to delete your VPC via the Scaleway console, API or other developer tool, and see one of the following error messages:

  • resource_still_in_use
  • Detach resources from this VPC in order to delete it
  • VPC must be empty to be deleted
  • precondition failed: resource is still in use

VPC deletion solutionsLink to this anchor

The VPC must contain no Private Networks before you can delete it.

Ensure you have deleted all the Private Networks inside the VPC. You can see how many Private Networks are in your VPC listing in the Scaleway console.

In order to successfully delete a Private Network, you must ensure no resources are attached to it, and there are no private IPs reserved within the network. See the information below for full details.

Ensure you are not trying to delete a default VPC. Each Scaleway Project has three auto-created default VPCs, one for each region. These VPCs cannot be deleted. They are free of charge. The existence of default VPCs does not block the deletion of a Scaleway account or Project, as long as the default VPCs do not contain Private Networks with associated/attached resources.

You can identify default VPCs by the Default badge in the VPC listing, even if you have changed the name of the VPC itself.

I can’t delete my Private NetworkLink to this anchor

PN deletion problemsLink to this anchor

You may be attempting to delete a Private Network VPC via the Scaleway console, API or other developer tool, and see one of the following error messages:

  • resource_still_in_use
  • Detach resources from this Private to delete it
  • Private Network must be empty to be deleted
  • precondition failed: resource_still_in_use

PN deletion solutionsLink to this anchor

The Private Network must have no attached or associated resources before you can delete it.

Ensure you have detached all resources from the Private Network. In the Scaleway console, you can see how many resources are attached to each Private Network in each VPC’s Private Networks tab.

If there are still attached resources, you must detach them before proceeding.

Ensure there are no reserved IPs in IPAM for the Private Network. If the resource count displays as zero, but you still cannot delete your Private Network, this may be the problem.

  • In the IPAM section of the Scaleway console, use the filters to select the region and VPC of your Private Network. If there are any private IPs reserved for the Private Network, release them.
Was this page helpful?
API DocsScaleway consoleDedibox consoleScaleway LearningScaleway.comPricingBlogCareers
© 2023-2025 – Scaleway