Deleting virtual networks

DELETE /v2.0/networks/{network_id}

Delete a network with the specified ID and its associated resources.

Source: https://docs.openstack.org/api-ref/network/v2/index.html?expanded=delete-network-detail#delete-network

Request

Parameters

Name In Type Description
network_id path string The ID of the network.

Example

# curl -ks -X DELETE -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' \
https://<node_IP_addr>:9696/v2.0/networks/ee3c3486-2ccc-457a-9b66-b974e164f358

Response

Status codes

Success

Code Reason
204 - No Content The server has fulfilled the request.

Error

Code Reason
401 - Unauthorized

User must authenticate before making a request.

404 - Not Found

The requested resource could not be found.

409 - Conflict

This operation conflicted with another operation on this resource.

412 - Precondition Failed

The server does not meet one of the preconditions that the requester put on the request header fields.