---
title: "Delete an existing DAG"
method: DELETE
path: "/dags/{fileName}"
tags: ["dags"]
---

# Delete an existing DAG

`DELETE /dags/{fileName}`

Permanently removes a DAG definition from the system

## Path parameters

- `fileName` string, regex, required — Name of the DAG file

## Query parameters

- `remoteNode` string

## Response `204`

DAG successfully deleted

## Other responses

- `404` — DAG not found
- `default` — Generic error response

---

[API](https://skmtc.net/dagucloud/apis/dagu.md) · [All operations](https://skmtc.net/dagucloud/apis/dagu/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dagucloud/dagu/revisions/93cc41f2018a/schema)
