DELETE
/
delete
try {
  const res = fetch("https://api.uploadfly.cloud/delete", {
    method: "DELETE",
    headers: {
      Authorization: "Bearer API_KEY",
    },
    body: {
      file_url: "cdn.uploadfly.cloud/xrwbua/example.png",
    },
  });
  //Handle response
} catch (error) {
  //Handle error
}
{
  "success": true,
  "status": 200,
  "data": {
    "message": "File deleted successfully"
  }
}

Body

file_url
string

The file URL you provide is used to identify a file that exists in your fly that you want to delete.

Response

message
string

Contains a descriptive message that provides further details about the API call's outcome.

success
boolean

Indicates whether the call was successful. true if successful, false if not.

status
number

Provides additional information about the outcome of the request. The specific values and their meanings may vary.

  • 200: The request was successful.
  • 400: The request was invalid or malformed.
  • 401: Authentication or authorization failed.
  • 403: The request is not allowed.
  • 404: The requested resource was not found.
  • 500: An internal server error occurred.