Skip to main content

Delete Country

API operation: Open the endpoint in Scalar

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

The documented schema restricts deletion to role levels 0 and 1. Resolve the country identifier and its dependent data before sending this destructive request.

Legacy SDK example​

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

Confirm the SDK package and version before using this helper.

OpenAPI reference​

Operation: DELETE /countries/{country}

Path parameters

NameTypeRequiredDescription
countryintegerYes—

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