Delete a lot
Lots
Delete a lot
Soft-deletes a lot, mirroring the UI delete: the lot’s regular on-hand stock is automatically cleared to zero (via an inventory adjustment posted by the authenticated user) and then the lot is soft-deleted.
The request is rejected (422) when the lot cannot be safely emptied first:
- stock is committed to a picklist (which the auto-clear cannot write off),
- the product has no base unit of measure (so a count-to-zero adjustment cannot be built), or
- stock still remains after the auto-clear adjustment is posted.
Clear the lot via an inventory adjustment and retry.
DELETE
Delete a lot