Delete a bin
Permanently delete a bin. This is a hard delete — the bin is gone for good and cannot be recovered; there is no soft-delete or undo.
Deleting a bin also detaches it from everything associated to it: any packages, batches, plants, plant groups and assembly outputs that referenced this bin are unbinned. Those records, and their inventory, are not deleted — they simply no longer point to any bin. Nothing about inventory quantities, packages, or compliance changes; only the bin association is removed.
Returns 404 if no bin with that ID belongs to your company (the lookup is company-scoped), and 204 with no body on success.
Bins only exist for companies that have bin inventory tracking enabled; if it is disabled the request is rejected.
Required permission: settings_permissions_bins.
BearerAuthorizationBearer <token>API token generated in Distru (Settings → Distru API). Send it on every request as Authorization: Bearer YOUR_API_TOKEN.
id*stringThe bin's ID.
No Content
curl -X DELETE 'https://app.distru.com/public/v1/bins/1b751ce0-c1ad-467f-92e1-bb681f310de6'