9.6. 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#delete-network

9.6.1. Request

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<...>' \

9.6.2. Response Status codes

Normal response codes: 204

Error response codes: 401, 404, 409, 412 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.