Skip to content

Delete Unit

Delete a unit of measure from Last Mile Intelligence.

deleteUnit

unit

ParameterTypeRequiredDefaultDescription
Unit IDstringYes-The ID of the unit to delete
{
"success": true,
"message": "Unit deleted successfully",
"unitId": "unit_gallon"
}
{
"success": false,
"error": "Unit not found",
"unitId": "invalid_id"
}
  • Missing API Token: LMI credential is missing API token
  • Unit Not Found: Unit with specified ID does not exist
  • In Use: Unit is being used by products or orders
  • Permission Denied: API token lacks permission for this operation