Deleting a virtual router

This section explains how to delete a virtual router.

Deletion of a virtual router is basically the procedure for creating a virtual router done in reverse.

  1. Set the environment variable below as follows:
    $ TMP_ROUTER_ID=<virtualRouterIdTargetedForDeletion>
  2. Execute the following API:
    $ curl -i -Ss $NETWORK/v2.0/routers/$TMP_ROUTER_ID -X DELETE \
    -H "X-Auth-Token: $OS_AUTH_TOKEN"
    HTTP/1.1 204 No Content
    Server:  Apache
    Date:  Www, DD MMM yyyy hh:mm:ss GMT
    x-compute-request-id:  req-id
    Cache-Control:  no-cache
    X-Request-Id:  xReqId
    X-Runtime:  <runtime>