Skip to content
First requestVisit website ↗
Navigation

Delete image from storage

Delete an image file from Cloudflare R2 storage. Includes security checks to ensure the file belongs to the specified workspace.

DELETE
https://api.channelautomation.com/api/media/delete

Authorization

  • bearerAuth
    optional
    bearerAuth
  • apiKey
    optional
    apiKey

Request body JSON required

  • fileName
    string
    required

    File name/key to delete

  • workspaceId
    string
    required

    Workspace ID for authorization

Returns

200

Image deleted successfully

JSON
  • success
    optional
    boolean

    Whether the deletion was successful

  • fileName
    optional
    string

    Name of the deleted file

400

Bad request
JSON
  • success
    optional
    boolean
  • error
    optional
    string

    Error message

403

Unauthorized - file doesn't belong to workspace
JSON
  • success
    optional
    boolean
  • error
    optional
    string

    Error message

500

Server error
JSON
  • success
    optional
    boolean
  • error
    optional
    string

    Error message

Type to search…

↑↓ navigate↵ selectEsc close