Skip to content

Delete a location

DELETE
/locations/{name}
curl --request DELETE \
--url https://example.com/api/v1/locations/example

Deletes a location, refused (409) while it still has child locations or is still referenced elsewhere. The 409 lists what is in the way as blockers (kind, id, name, label), naming only rows the caller may read and counting the rest in blockers_hidden. Gated by location:delete; read and delete scopes drive the 404 versus 403 split.

name
required

The location’s name, or a dotted address (e.g. boi.17c.415a)

string

The location’s name, or a dotted address (e.g. boi.17c.415a)

No Content

Refused: something still depends on the row. blockers names what the caller may see; blockers_hidden counts the rest.

Media type application/problem+json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
blockers

The rows in the way that the caller may read, each to be removed or moved before the delete can succeed.

Array<object> | null
object
id
required

The blocking row’s uuid.

string format: uuid
kind
required

The blocking row’s own resource, so a client can link it and offer that kind’s own remove.

string
Allowed values: component endpoint system location
label
required

What an operator reads for the blocking row: its label, or its name when it has none.

string
name
required

The blocking row’s name, its operator-facing address (an endpoint’s is unique within its component).

string
blockers_hidden

How many more rows are in the way that are not listed: outside the caller’s read scope, or past the listing cap.

integer format: int64
detail

A human-readable explanation specific to this occurrence of the problem.

string
errors

Optional list of individual error details

Array<object> | null
object
location

Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’

string
message

Error message text

string
value

The value at the given location

instance

A URI reference that identifies the specific occurrence of the problem.

string format: uri
status

HTTP status code

integer format: int64
title

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

string
type

A URI reference to human-readable documentation for the error.

string format: uri
default: about:blank

Example

{
"$schema": "/api/v1/schemas/DeleteRefusal.json",
"blockers": [
{
"kind": "component"
}
],
"detail": "Property foo is required but is missing.",
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}

Error

Media type application/problem+json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
detail

A human-readable explanation specific to this occurrence of the problem.

string
errors

Optional list of individual error details

Array<object> | null
object
location

Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’

string
message

Error message text

string
value

The value at the given location

instance

A URI reference that identifies the specific occurrence of the problem.

string format: uri
status

HTTP status code

integer format: int64
title

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

string
type

A URI reference to human-readable documentation for the error.

string format: uri
default: about:blank

Example

{
"$schema": "/api/v1/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}