HTTP 400 error "Reference failure"

Symptom

A REST request returns response code 400 and the response body contains the following text string:

Reference failure

Cause

You attempted to delete a resource that is referenced by other resources. Typically, this error occurs for resources that have no clear parent in the resource hierarchy, such as ports. For example, the Reference failure response is returned if you attempt a DELETE request on a port.

Action
Remove all references to the resource.

After all references to a resource are removed, the resource is deleted automatically.