Delete Location
Delete a location from Last Mile Intelligence.
Operation
Section titled “Operation”deleteLocation
Resource
Section titled “Resource”location
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Location ID | string | Yes | - | The ID of the location to delete |
Response
Section titled “Response”Success
Section titled “Success”{ "success": true, "message": "Location deleted successfully", "locationId": "loc_abc123"}{ "success": false, "error": "Location not found", "locationId": "invalid_id"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Location Not Found: Location with specified ID does not exist
- Has Dependencies: Location is used in routes or service areas
- Permission Denied: API token lacks permission for this operation