Delete User Address
API operation: Open the endpoint in Scalar
Use DELETE /users/{user_id}/addresses/{address_id} to delete a user address. The operation documented here is Address.delete.
The documented schema requires authentication and blocks a customer from deleting an address through another user_id. Do not assume the route enforces that address_id belongs to the supplied user_id for every role. Verify both identifiers and access controls before use. Deletion is destructive.
const response = await ordering.users(userId).addresses(addressId).delete();
This SDK syntax is historical. Confirm the package and version before using it. See User address model.
OpenAPI reference
Operation: DELETE /users/{user_id}/addresses/{address_id}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
user_id | integer | Yes | — |
address_id | integer | Yes | — |
Responses
| Code | Description |
|---|---|
| 200 | OK (Envelope) |
| 400 | Bad Request (ErrorResponse) |
| 401 | Unauthorized |
| 404 | Not Found |
| 429 | Too Many Requests (ErrorResponse) |
| 500 | Internal Server Error (ErrorResponse) |
| 503 | Service Unavailable (ErrorResponse) |