---
title: "Deletes a file attachment from a print. Only the owner of the attachment may delete it."
method: DELETE
path: "/api/Prints/{id}/files/{fileId}"
tags: ["Prints"]
---

# Deletes a file attachment from a print. Only the owner of the attachment may delete it.

`DELETE /api/Prints/{id}/files/{fileId}`

## Request

- Base URL: `https://api.3dprintlog.com`
- URL: `https://api.3dprintlog.com/api/Prints/{id}/files/{fileId}`
- Auth: one of:
  - OAuth 2 (authorization code, authorization URL `https://3dprintlog.auth0.com/authorize`, token URL `https://3dprintlog.auth0.com/oauth/token`)
  - API key in header `X-Api-Key`
  - API key in query parameter `api_key`

## Path parameters

- `id` integer, required
- `fileId` integer, required

## Response `200`

If the file was deleted successfully.

## Other responses

- `401`: If the user is not authenticated.
- `403`: If the user does not own the file attachment.
- `404`: If the print or attachment does not exist.

---

[API](https://skmtc.dev/3dprintlog/apis/3d-print-log-api.md) · [All operations](https://skmtc.dev/3dprintlog/apis/3d-print-log-api/llms.txt) · [OpenAPI document](https://skmtc.dev/3dprintlog/apis/3d-print-log-api/revisions/dfc3a4df4e38?raw)
