---
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
      - `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

---

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