---
title: "Remove a digital file from a product"
method: DELETE
path: "/open-api/v1.0/products/{productId}/digital-files"
tags: ["Digital Products"]
---

# Remove a digital file from a product

`DELETE /open-api/v1.0/products/{productId}/digital-files`

*Rate limit: 100 requests / 10 seconds per shop. See [Rate limiting](/guides/rate-limiting).*

Removes a digital file from the product by its file URL.

## Path parameters

- `productId` string, required

## Request body

- ComFourthwallAppOpenapiEndpointOpenApiDigitalProductEndpointRemoveDigitalFileRequestV1
  - `fileUrl` string, required

## Response `200`

OK

- ComFourthwallOpenapiModelOfferAbstractV1OfferFullV1
  - `id` string, required
  - `name` string, required
  - `slug` string, required
  - `description` string, required
  - `type` 'STANDARD' | 'GIFT_CARD' | 'UNKNOWN', required
  - `state` union, required
    - ComFourthwallOpenapiModelOfferAbstractV1OfferStateV1Available
      - `type` 'AVAILABLE', required
    - ComFourthwallOpenapiModelOfferAbstractV1OfferStateV1SoldOut
      - `type` 'SOLD_OUT', required
  - `access` union, required
    - ComFourthwallOpenapiModelOfferAbstractV1OfferAccessV1Archived
      - `type` 'ARCHIVED', required
    - ComFourthwallOpenapiModelOfferAbstractV1OfferAccessV1Hidden
      - `type` 'HIDDEN', required
    - ComFourthwallOpenapiModelOfferAbstractV1OfferAccessV1Private
      - `type` 'PRIVATE', required
    - ComFourthwallOpenapiModelOfferAbstractV1OfferAccessV1Public
      - `type` 'PUBLIC', required
  - `thumbnailImage` ComFourthwallOpenapiModelImage
    - `id` string, required
    - `url` string, required
    - `width` integer, required — The original width of the image in pixels.
    - `height` integer, required — The original height of the image in pixels.
    - `transformedUrl` string, required — Transformed URL with applied image processing (e.g., resizing, optimization)
  - `images` ComFourthwallOpenapiModelImage[], required
    - `id` string, required
    - `url` string, required
    - `width` integer, required — The original width of the image in pixels.
    - `height` integer, required — The original height of the image in pixels.
    - `transformedUrl` string, required — Transformed URL with applied image processing (e.g., resizing, optimization)
  - `variants` ComFourthwallOpenapiModelOfferAbstractV1OfferVariantAbstractV1OfferVariantV1[], required
    - `id` string, required
    - `name` string, required
    - `sku` string, required
    - `unitPrice` Money, required
      - `value` number, required
      - `currency` string, required
    - `compareAtPrice` Money
      - `value` number, required
      - `currency` string, required
    - `unitCost` Money
      - `value` number, required
      - `currency` string, required
    - `attributes` ComFourthwallOpenapiModelOfferAbstractV1OfferVariantAbstractV1Attributes, required
      - `description` string, required
      - `color` ComFourthwallOpenapiModelOfferAbstractV1OfferVariantAbstractV1AttributesColor
        - `name` string, required
        - `swatch` string, required
      - `size` ComFourthwallOpenapiModelOfferAbstractV1OfferVariantAbstractV1AttributesSize
        - `name` string, required
    - `creatorDeclaredCost` Money
      - `value` number, required
      - `currency` string, required
    - `stock` union, required
      - ComFourthwallOpenapiModelOfferAbstractV1OfferVariantAbstractV1StockLimited
        - `type` 'LIMITED', required
        - `inStock` integer, required
      - ComFourthwallOpenapiModelOfferAbstractV1OfferVariantAbstractV1StockUnlimited
        - `type` 'UNLIMITED', required
    - `weight` ComFourthwallOpenapiModelOfferAbstractV1OfferVariantAbstractV1Weight, required
      - `value` number, required
      - `unit` string, required
    - `dimensions` ComFourthwallOpenapiModelOfferAbstractV1OfferVariantAbstractV1Dimensions, required
      - `length` number, required
      - `width` number, required
      - `height` number, required
      - `unit` string, required
    - `images` ComFourthwallOpenapiModelImage[], required
      - `id` string, required
      - `url` string, required
      - `width` integer, required — The original width of the image in pixels.
      - `height` integer, required — The original height of the image in pixels.
      - `transformedUrl` string, required — Transformed URL with applied image processing (e.g., resizing, optimization)
    - `thumbnailImage` ComFourthwallOpenapiModelImage
      - `id` string, required
      - `url` string, required
      - `width` integer, required — The original width of the image in pixels.
      - `height` integer, required — The original height of the image in pixels.
      - `transformedUrl` string, required — Transformed URL with applied image processing (e.g., resizing, optimization)
  - `additionalInformation` ComFourthwallOpenapiModelOfferAbstractV1OfferAdditionalInformationV1
    - `sizeAndFit` string
    - `guaranteeAndReturns` string
    - `moreDetails` string
  - `sizeGuide` ComFourthwallOpenapiModelOfferAbstractV1OfferSizeGuideV1
    - `previewUrl` string
    - `fileUrl` string
    - `description` string
    - `fitGuideDescription` string
    - `fitGuideUrls` string[], required
  - `digitalFiles` ComFourthwallOpenapiModelOfferDigitalFileV1[] — Digital files attached to this offer. Only present for digital offers.
    - `uri` string, required — The file URI
    - `name` string, required — The file name
    - `fileSize` string — Human-readable file size
    - `mediaType` string — MIME type of the file
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `400` — Possible errors: `CUSTOMIZATION_ALREADY_USED_ERROR`, `DIGITAL_ITEMS_NOT_VALID_ERROR`, `DIGITAL_ITEMS_SIZE_LIMIT_ERROR`, `DUPLICATE_OFFER_VARIANT_TYPE_OPTION_ERROR`, `DUPLICATE_OFFER_VARIANT_TYPES_ERROR`, `ILLEGAL_FULFILLMENT_SERVICE_ERROR`, `ILLEGAL_FULFILLMENT_SERVICE_FOR_GIFT_CARD_ERROR`, `INVALID_OFFER_VARIANT_TYPE_METADATA_ERROR`, `MISSING_OFFER_COLOR_SWATCH_ERROR`, `OFFER_SHIPMENT_EDIT_NOT_ALLOWED_ERROR`, `TOTAL_DIGITAL_STORAGE_LIMIT_ERROR`
- `403` — Possible errors: `OFFER_MODIFICATION_FORBIDDEN_ERROR`
- `404` — Possible errors: `OFFER_NOT_FOUND_BY_SHOP_ID_AND_ID_ERROR`, `OFFER_NOT_FOUND_ERROR`, `OFFER_VARIANT_NOT_FOUND_ERROR`, `OFFER_VARIANT_TYPE_OPTION_NOT_FOUND_ERROR`
- `406` — Possible errors: `MEDIA_FILE_INVALID_URLS`
- `409` — Possible errors: `OFFER_SLUG_DUPLICATION_ERROR`, `SQL_CONSTRAINTS_ERROR`
- `422` — Possible errors: `OFFER_CATEGORY_NOT_FOUND_ERROR`, `OFFER_MANUFACTURER_CANNOT_BE_UPDATED`
- `429` — Rate limited: 100 requests / 10 seconds per shop.

---

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