---
title: "Delete model YAML file"
method: DELETE
path: "/api/v1/models/{modelId}/yaml"
tags: ["Models"]
---

# Delete model YAML file

`DELETE /api/v1/models/{modelId}/yaml`

## Path parameters

- `modelId` string, uuid, required — Model UUID

## Query parameters

- `branchId` string, uuid — Branch ID for branch-aware operations
- `fileName` union, required — File name to delete (must end with '.topic', '.composite_topic', or '.view')
  - string
  - string
  - string
- `mode` 'combined' | 'extension' | 'staged' | 'merged' | 'fully-resolved' — IDE mode for YAML operations
- `commitMessage` string — Commit message for git sync

## Response `200`

YAML file deleted

## Other responses

- `400` — Invalid file name
- `401` — Authentication required
- `403` — Permission denied
- `404` — Model or file not found

---

[API](https://skmtc.net/omniapp/apis/omni-api.md) · [All operations](https://skmtc.net/omniapp/apis/omni-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/omniapp/omni-api/versions/de7cac8b5983/schema)
