Delete a Fit
Private beta The v1 contract is implemented; the endpoints are not publicly reachable yet and access is by request. Details may still change during the beta.
DELETE /v1/fits/:id deletes a Fit and its files.
curl -X DELETE <API_ORIGIN>/v1/fits/fit_7hsK2pL4... \
-H "Authorization: Bearer outfit_live_..."
Response
204 No Content. The Fit's output image, model and preview are deleted from storage and the Fit disappears from reads and lists. Deleting is permanent.
Rules
- A completed or failed Fit can be deleted at any time.
- A Fit that is still
queuedorprocessingcannot be deleted; the request answers409 fit_unavailable. Wait for the terminal status, then delete. - Deleting a Fit does not delete the uploads it used. An upload a Fit referenced is kept; an upload nothing referenced expires on its own (24 hours). See Uploads.
- A deleted Fit still counts as used for usage and billing, because it was generated.
- Outfit AI keeps an internal record that a generation took place (no image, no URL) for accounting. Data an AI provider received for a live Fit is subject to that provider's retention, which Outfit AI cannot shorten.
Deleting on behalf of a person
If your product lets a person delete their data, delete every Fit that used their person upload. The list endpoint accepts created_after and created_before; keep your own mapping from your users to Fit ids, because Outfit AI stores no identity of your users.
Errors
| Status | Code | When |
|---|---|---|
| 404 | not_found | Unknown id, another organization's Fit, a Fit of the other key kind, or already deleted |
| 409 | fit_unavailable | The Fit is still being generated |