---
title: "Deletes a file corresponding to given fileId in S3"
method: DELETE
path: "/v1/li/files/{fileId}"
tags: ["Bulk Routing API", "Bulk Multipass API", "Bulk Data Graph API", "Bulk Order Management API", "Bulk Analysis API"]
---

# Deletes a file corresponding to given fileId in S3

`DELETE /v1/li/files/{fileId}`

## Request

- Base URL: `https://api.cloud.precisely.com`
- URL: `https://api.cloud.precisely.com/v1/li/files/{fileId}`
- Auth: HTTP bearer

This endpoint deletes a file corresponding to given fileId by the specified user. The fileId is provided in the path variable. If the fileId is invalid or the file does not exist, an error response will be returned. The response includes status of the deletion operation and detailed message and indicates whether the deletion was successful or not.

## Path parameters

- `fileId` string, required

## Headers

- `X-Request-Id` string

## Response `200`

File deletion success or failure

- DeleteUploadResponse: Response indicating result of deleting a file from S3
  - `status` 'SUCCESS' | 'FAILURE': Status of the deletion operation
  - `message` string: Detailed message about the operation result

## Other responses

- `400`: Invalid File Id
- `401`: Unauthorized: Invalid token
- `403`: Forbidden
- `429`: Too many requests
- `500`: Internal Server Error
- `503`: Service Unavailable

---

[API](https://skmtc.dev/precisely/apis/bulk-orchestrator-apis.md) · [All operations](https://skmtc.dev/precisely/apis/bulk-orchestrator-apis/llms.txt) · [OpenAPI document](https://skmtc.dev/precisely/apis/bulk-orchestrator-apis/revisions/989567dcef87?raw)
