---
title: "Delete a fileUpload"
method: DELETE
path: "/fileUploads/{fileUploadId}"
tags: ["fileUploads"]
---

# Delete a fileUpload

`DELETE /fileUploads/{fileUploadId}`

## Request

- Base URL: `https://api.lumahealth.io/api/v2`
- URL: `https://api.lumahealth.io/api/v2/fileUploads/{fileUploadId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/lumahealth/apis/rest-service/docs/fileUploads/:fileUploadId/delete.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `fileUploadId` string, required

## Response `200`

Deleted fileUpload

- FileUploadResponse: A FileUpload represents a file uploaded to the Luma Health platform, such as a patient insurance card image, a referral fax, a form attachment, a chat attachment, or a provider headshot. It stores metadata about the file including its storage location, name, extension, content type, upload type, and processing status, and it can link back to related records like a patient, insurance, referral, patient form, message, or estimate. Staff and integrations use this resource to check on an uploaded file's metadata and confirm whether processing completed successfully or failed.
  - `_id` string: Luma's internal ID of an object.
  - `user` string: The ID of the root account user.
  - `deleted` 0 | 1: Flag for logical deletion where 1 means deleted.
  - `createdBy` string: The ID of the user who created this object.
  - `updatedBy` string: The ID of the user who updated this object.
  - `createdAt` string, date-time: The date/time when this object was created.
  - `updatedAt` string, date-time: The date/time when this object was updated.
  - `bucket` string: AWS Bucket S3 name.
  - `aswId` string: Asw Id.
  - `name` string: Name of file.
  - `extension` string: Extension of file.
  - `contentType` string: Content Type/MIME of file.
  - `type` 'patient-insurance-image' | 'patient-message' | 'patient-referral-fax' | 'patient-referral' | 'patient-form' | 'provider-headshot' | 'avatar' | 'custom-web-style-logo' | 'generic' | 'integration-archive' | 'patient-pdf' | 'patient-ccda' | 'bulk-patients-insurance' | 'bulk-patients-form' | 'do-not-contact-patients-list' | 'archived-contacts-list' | 'bulk-users-update' | 'bulk-users-create' | 'upload' | 'lumabot-html-preview': Type of the uploaded file.
  - `base64` string: base64 representation of the binary file.
  - `patient` string: ID of a Patient.
  - `insurance` string: ID of an Insurance.
  - `referral` string: ID of a Referral.
  - `outboundReferral` string: ID of an Outbound Referral.
  - `patientForm` string: ID of a Patient Form.
  - `message` string: ID of a Message.
  - `broadcast` string: ID of a Broadcast.
  - `website` string: ID of a Website.
  - `status` 'processing' | 'completed' | 'failed': Status of the file upload. Processing = File-upload was created, but still being processed, Completed = File-upload was completed successfully, Failed = File-upload has failed.
  - `estimate` string: Estimate Id.

## Other responses

- `401`: Not authenticated
- `403`: Access token does not have the required scope

---

[API](https://skmtc.dev/lumahealth/apis/rest-service.md) - [All operations](https://skmtc.dev/lumahealth/apis/rest-service/llms.txt) - [OpenAPI document](https://skmtc.dev/lumahealth/apis/rest-service/revisions/f19aeba84a26?raw)
