Ultimate Uploadcare
DemoEditorGet Ultimate Uploadcare
  • Welcome
  • Introduction
    • Key Use Cases
    • Key Features
    • Release Notes
  • Getting Started
    • Retrieving Uploadcare Keys
    • Installing the plugin
  • Elements
    • Ultimate Uploadcare - Uploader
      • Settings
        • Upload Options
        • Upload Config
        • Button Styling
      • Exposed States
        • List of File Paths
        • List of UUIDs
        • List of File Names
        • Array of Files
        • Disabled
        • Base64 Array
      • Workflow Actions
        • Reset Uploader
        • Remove File From Uploader
        • Open Uploader
        • Close Uploader
      • Events
    • Ultimate Uploadcare - Cloud Image Editor
      • Settings
      • Exposed States
      • Workflow Actions
      • Events
    • Ultimate Uploadcare - Video Player
      • Settings
    • Backend Workflow Actions
      • Store File
      • Delete File
      • Extract UUID
  • Implementation
    • File Uploads with Ultimate Uploadcare - Uploader
    • Saving Files to Bubble
    • Storing Files in Uploadcare
    • Optimising Images for SEO
    • Image Editing with Ultimate Uploadcare - Cloud Image Editor
Powered by GitBook
On this page
  • Fields
  • File UUID
  • Returned Values
  • Response
  • Success
  • Error Message
  • Error Code
  1. Elements
  2. Backend Workflow Actions

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:

{
  "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.


Error Code

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

PreviousStore FileNextExtract UUID

Last updated 5 months ago

All error messages are listed

All error codes are listed

here
here