> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lavendly.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Detach track

> Remove a track. Optionally also delete the source canvas node.

<ParamField path="id" type="string" required>Workflow id.</ParamField>
<ParamField path="track_id" type="string" required>Track id.</ParamField>

### Query

<ParamField query="remove_source" type="boolean" default="false">
  If `1`, also deletes the source audio node from the workflow graph
  (otherwise just removes the edge to the clip).
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE 'https://api.lavendly.ai/v1/workflows/wf_xyz/tracks/tr_a1b2c3d4e5f6?remove_source=1' \
    -H 'Authorization: Bearer $LAVENDLY_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "track_id":            "tr_a1b2c3d4e5f6",
    "detached":            true,
    "source_node_removed": true
  }
  ```
</ResponseExample>
