Delete File

This API deletes a specific file identified by its file_uri. It sends a DELETE request to the backend server, and upon success, the file is permanently removed from the system.

The Delete File API removes a specific file identified by its file_uri. It sends a DELETE request to the backend server, and upon success, the file is permanently removed from the system.

This API is especially useful for:

  1. Cleaning up unused or outdated files in the system.
  2. Ensuring secure removal of sensitive data from storage.
  3. Managing file lifecycle efficiently within the platform.

Request Parameters

Public Request Parameters

📘

Public Request Parameters

Path Parameters

FieldTypeDescriptionRequiredExample
file_uristringA unique identifier of the file to delete, formatted as a valid URI string representing the file’s path.Yes7ebb4faa8d92e1d627edf9ca61a98993.png

Response Explanation

Public Response Parameters

📘

Public Response Parameters

Success Response

Status CodeDescription
200File successfully deleted.

Error Response

Error responses in the API can be represented using two different fields: errors and error. Both fields provide details about issues encountered during request processing. Below is an explanation of the fields with their respective examples and descriptions.

FieldTypeExampleDescription
errorString "page not found"Indicates an error encountered during the process

Error Detail

Status CodeMessagePossible ReasonExample Response
400Bad RequestInvalid input format or request structure (e.g., missing required fields or incorrect data types).Bad Request
UnauthorizedThe request is missing valid authentication credentials or the credentials provided are invalid.Unauthorized

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!