Skip to main content
DELETE
Delete Application File or Folder
string
required
The ID of the application to delete the file or folder from. If the application belongs to a workspace, pass its ID in the workspace_id query parameter.
string
If the application belongs to a workspace, the workspace’s ID. Members with an Owner, Admin or Developer role can use the file manager on a workspace app they don’t own; without this, only the app’s own owner can.
string
required
The path to the file or folder to delete.
boolean
Set to true to confirm that the change detaches an application that came from an open template (it stops receiving versions). Without it the request changes nothing and answers 409 TEMPLATE_DETACH_CONFIRMATION_REQUIRED. Ignored for other applications. See Detach from a template.

Response

A success returns 200 with { "response": { "space_released": "now" } }.
string
now when the disk space is free right after the deletion. on_restart when a deleted file was still open in the running application (a database file, for example): the file is gone, but its space only comes back at the application’s next restart. The dashboard shows a notice in that case.

Error Responses

string
The error code indicating the reason for failure. Possible values:
  • AUTH_TOKEN_MISSING, API_KEY_INVALID, SESSION_REVOKED: The Authorization header is missing, the API key is invalid, or the dashboard session was revoked (401).
  • API_KEY_IP_DENIED, API_KEY_SCOPE_DENIED: The API key is used from an IP outside its allowlist, or it lacks the scope the route requires (403).
  • ACCESS_DENIED: You are a workspace member without the permission for this action, or you did not send the workspace_id (403).
  • FORBIDDEN: The user does not have permission to access the application.
  • APP_NOT_FOUND: The specified application was not found.
  • PLAN_RESTRICTED_FEATURE: The user’s plan does not support file manager access.
  • MISSING_PATH: The path query parameter was not provided.
  • FORBIDDEN_PATH: The specified path is restricted.
  • FILE_DELETE_FAILED: Failed to delete the file or folder.
  • OPERATION_IN_PROGRESS: A snapshot of the application is being taken, or another operation is running on it (409). Try again in a few moments.
  • TEMPLATE_DETACH_CONFIRMATION_REQUIRED: The change would detach the application from its template and confirm_detach was not sent (409). Nothing was changed.
string
A descriptive message providing additional details about the error.
Last modified on November 24, 2026