---
title: "Delete data-link content"
method: DELETE
path: "/data-links/{dataLinkId}/content"
tags: ["data-links"]
---

# Delete data-link content

`DELETE /data-links/{dataLinkId}/content`

Deletes the content of the data-link associated with the given `dataLinkId`. The data-link itself is preserved.

## Path parameters

- `dataLinkId` string, required

## Query parameters

- `workspaceId` integer
- `credentialsId` string

## Request body

- DataLinkDeleteItemRequest
  - `dirs` string[]
  - `files` string[]

## Response `200`

OK

- DataLinkDeleteItemResponse
  - `deletionFailures` DataLinkItemDeletionFailure[]
    - `dataLinkItem` DataLinkItem, required
      - `lastModified` string, date-time, nullable — Last-modified timestamp of the object (ISO-8601, UTC). Null for folders.
      - `mimeType` string
      - `name` string
      - `size` integer
      - `type` 'FOLDER' | 'FILE' | 'FUSION_SYMLINK_FILE'
    - `errorMessage` string, required

## Other responses

- `400` — BadRequest
- `403` — Operation not allowed
- `404` — NotFound — workspace or credentials not found, API disabled for the workspace, or data-link or path not found

## Changes

> 14 revisions in range; 1 not diffed, 3 could not be searched.

- **2026-04-20** `b2b5cc41d473` — 1 warning
  - added the new `FUSION_SYMLINK_FILE` enum value to the `deletionFailures/items/dataLinkItem/type` response property for the response status `200`

[Change history](https://skmtc.dev/seqeralabs/apis/seqera-api/changes/data-links/:dataLinkId/content/delete.md)

---

[API](https://skmtc.dev/seqeralabs/apis/seqera-api.md) · [All operations](https://skmtc.dev/seqeralabs/apis/seqera-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/seqeralabs/seqera-api/revisions/97f7655d105a/schema)
