# Delete File

When a user deletes a file in Bubble, you likely want to remove it from your Uploadcare account as well. This is especially important when you're wanting to make the most of your storage.

## Fields

### File UUID

The uuid of the file to be deleted.

**Default:** `null`

***

## Returned Values

Uploadcare's API response is passed back through the below returned values so you can elegantly handle errors in your application

### Response

The full response object from the API

Example:

```json
{
  "datetimeRemoved": "2024-11-20T02:11:08.997316Z",
  "datetimeStored": null,
  "datetimeUploaded": "2024-11-20T02:11:04.377530Z",
  "isImage": true,
  "isReady": true,
  "mimeType": "image/jpeg",
  "originalFileUrl": null,
  "originalFilename": "https___82c819c3392e910f20b7ce63aac0f3d1.cdn.bubble.io_f1706692346545x776164874982252500_Screenshot%202024-01-31%20at%2010.08.23.jpeg",
  "size": 11481,
  "url": "https://api.uploadcare.com/files/a20c89f6-a6c0-47ee-a80c-cacbd9ce26cd/",
  "uuid": "a20c89f6-a6c0-47ee-a80c-cacbd9ce26cd",
  "variations": null,
  "contentInfo": {
    "mime": { "mime": "image/jpeg", "type": "image", "subtype": "jpeg" },
    "image": {
      "dpi": [72, 72],
      "width": 678,
      "format": "JPEG",
      "height": 312,
      "sequence": false,
      "colorMode": "RGB",
      "orientation": null,
      "geoLocation": null,
      "datetimeOriginal": null
    }
  },
  "metadata": {}
}
```

***

### Success

A boolean value on whether the request was successful. You can use this for conditional workflows.

***

### Error Message

The error message that is returned from Uploadcare when deleting the file fails.

All error messages are listed [here](https://uploadcare.com/api-refs/rest-api/v0.7.0/#tag/File/operation/deleteFileStorage)

***

### Error Code

The error code that is returned from Uploadcare when deleting the file fails.

All error codes are listed [here](https://uploadcare.com/api-refs/rest-api/v0.7.0/#tag/File/operation/deleteFileStorage)
