Skip to main content

Delete City

API operation: Open the endpoint in Scalar

Use DELETE /countries/{country}/cities/{city} to delete one city. The operation documented here is City.delete.

The documented schema restricts this operation to role levels 0 and 1 and deletes only when the city belongs to the specified country. Resolve both identifiers before sending this destructive request.

Legacy SDK example​

const response = await ordering.countries(countryId).cities(cityId).delete()

Confirm the SDK package and version before using this corrected helper.

OpenAPI reference​

Operation: DELETE /countries/{country}/cities/{city}

Path parameters

NameTypeRequiredDescription
countryintegerYes—
cityintegerYes—

Responses

CodeDescription
200OK (Envelope)
400Bad Request (ErrorResponse)
401Unauthorized
404Not Found
429Too Many Requests (ErrorResponse)
500Internal Server Error (ErrorResponse)
503Service Unavailable (ErrorResponse)
Open this operation in the API reference