Skip to Content
API ReferenceModelPOST /delete

POST /model/delete

Delete Model

Bulk delete models — composable infra architecture.

Request Body (DeleteModelApiRequest)

FieldTypeRequiredDescription
model_idsstring[]NoList of model IDs to delete (required on first call when all is false)
allbooleanNoWhen true, delete every model matching the filter fields below (minus excluded_ids)
excluded_idsstring[]NoUUIDs to skip even when matched by all-mode filters
searchstringNoFull-text search query
filter_provider_idsstring[]NoFilter by provider UUIDs
filter_department_idsstring[]NoFilter by department UUIDs
filter_agent_idsstring[]NoFilter by agent UUIDs
provider_searchstringNoSearch text for provider facet (no-op for row filtering)
department_searchstringNoSearch text for department facet (no-op for row filtering)
agent_searchstringNoSearch text for agent facet (no-op for row filtering)
flag_searchstringNoSearch text for flag facet (no-op for row filtering)
idempotency_keystringNoOperation key for ack — confirms or rejects a dormant delete
softbooleanNoStage the delete dormant (active=False) — propose; the ack ({idempotency_key, accept}) promotes/rejects it
acceptbooleanNoAccept (confirm) or reject dormant state. Only meaningful with idempotency_key

Response (DeleteModelApiResponse)

FieldTypeRequiredDescription
resultsDeleteModelResult[]YesList of deletion results
idempotency_keystringNoIdempotency key echoed back for client correlation
Last updated on