Skip to main content
This endpoint is not yet available. It is planned for a future release. If you need to stop checks running against a contract in the meantime, simply stop passing its id to POST /api/v1/check.

Endpoint

DELETE /api/v1/contracts/{id}
Host: api.driftguard.dev

Planned Behaviour

Once available, this endpoint will:
  • Permanently delete the contract and all its stored schema definitions
  • Return 404 on any future GET or check request using its id
  • Not delete historical check results that were run against this contract — those remain retrievable via GET /api/v1/checks/

Path Parameters

ParameterTypeRequiredDescription
idstringYesThe contract ID to delete

Planned Response

{
  "id": "your_contract_id_here",
  "deleted": true
}

Planned Error Responses

StatusMeaning
401Missing or invalid X-API-Key
404Contract not found, or belongs to a different user
429Rate limit exceeded — 100 req/min per key

Want to be notified when this endpoint goes live? Watch the Changelog or follow @naveenbale on X.

List Contracts

View all contracts currently active on your account.

Get Contract

Retrieve a single contract by its ID.