Delete Supplier
Soft-delete the supplier from your organization's registry view.
โถEffect
- Your organization's
organization_supplierlink is removed. - If no other organizations still link to the global supplier row,
the row is soft-deleted (its
deleted_atis set; the unique fingerprint index is partial ondeleted_at IS NULL, so a new create with the same identity can reuse the slot). - If other organizations still link, the global row is left intact and only your link is removed.
โถRejected when in use
The delete is rejected with 409 CONFLICT when any pending
(unsubmitted) DDS version of your organization still references
the supplier on dds_record_version_shed.supplier_id. To delete
in that case, first PATCH the affected DDSes to a different
supplier, or wait for those DDS versions to be submitted (which
freezes the snapshot and decouples them from the live row).
Frozen DDS references do NOT block the delete โ they retain their snapshot identity regardless of the registry state.
Required scope:
parties:write