DELETE /v1/dataContracts/{id}
Delete a Data Contract
Delete or restore a data contract
DELETE
DELETE /v1/dataContracts/{id}
Documentation Index
Fetch the complete documentation index at: https://openmetadata-codex-audit-docs-codebase-alignment.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Delete a Data Contract
Delete a data contract by ID or fully qualified name. Supports both soft delete and permanent (hard) delete.Delete by ID
UUID of the data contract.
Set to
true to permanently delete the contract. Soft-deleted contracts can be restored.Recursively delete child entities.
Delete by FQN
UseDELETE /v1/dataContracts/name/{fqn} with the same query parameters.
DELETE /v1/dataContracts/{id}
Restore
UsePUT /v1/dataContracts/restore with a JSON body containing the id of the soft-deleted contract to restore it.
Error Handling
| Code | Error Type | Description |
|---|---|---|
401 | UNAUTHORIZED | Invalid or missing authentication token |
403 | FORBIDDEN | User lacks permission to delete data contracts |
404 | NOT_FOUND | Data contract not found |