Skip to content

Delete Location

DELETE /v2/tms-api/locations/{id}

Permanently delete a location.

WARNING

This action cannot be undone. Make sure no active loads reference this location.

Path Parameters

idstringrequired
The location ID

Request Example

bash
curl -X DELETE "https://api.mentium.io/v2/tms-api/locations/loc_abc123" \
  -H "X-API-Key: your_api_key_here"

Response

204 No Content

Successful deletion - no response body.

404 Not Found

json
{
  "error": {
    "code": "NOT_FOUND",
    "message": "Location not found"
  }
}

409 Conflict

json
{
  "error": {
    "code": "CONFLICT",
    "message": "Cannot delete location: it is referenced by active loads"
  }
}

Mentium TMS API Documentation