---
title: "Unpin a DAG"
method: DELETE
path: "/dags/{fileName}/pin"
tags: ["dags"]
---

# Unpin a DAG

`DELETE /dags/{fileName}/pin`

## Request

- Base URL: `http://localhost/api/v1`
- URL: `http://localhost/api/v1/dags/{fileName}/pin`
- Auth: one of:
  - HTTP bearer
  - HTTP basic
  - none

Removes the DAG's pin for all users. Requires write access to the DAG's workspace; allowed when Git sync is read-only. Unpinning a DAG that is not pinned succeeds.

## Path parameters

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

## Query parameters

- `remoteNode` string

## Response `204`

DAG unpinned

## Other responses

- `403`: Forbidden - insufficient permissions
- `404`: DAG not found
- `default`: Unexpected error

## Changes

> 208 revisions in range; 1 not diffed.

- **2026-10-10** (v1) `fbf689f6491b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/dagucloud/apis/dagu/changes/dags/:fileName/pin/delete.md)

---

[API](https://skmtc.dev/dagucloud/apis/dagu.md) - [All operations](https://skmtc.dev/dagucloud/apis/dagu/llms.txt) - [OpenAPI document](https://skmtc.dev/dagucloud/apis/dagu/revisions/742c8ecb39ce?raw)
