Skip to main content
DELETE
Delete File
string
required
The API key for your account. You can find this in your account settings.
Delete File removes a single file from a running application by path, without touching the rest of the file tree or restarting the process. Use it for cleaning up generated files, old logs, or stray uploads without redeploying. The deletion happens directly on the application’s storage on the cluster node, so it takes effect immediately; there is no undo short of restoring from a prior snapshot. To remove a whole application instead of one file, see Delete Application. To rename or move a file instead of deleting it, use Move File. On workspace-shared applications the caller needs the Maintainer or Administrator role. Members without the restricted-files permission cannot delete files on the excluded list (such as .env or .env.production), the request is rejected with PERMISSION_DENIED first.

Parameters

string
required
The ID of the application. You can find this in the URL of your application’s dashboard.
string
required
The path of the file to delete.

Response

string
Indicates whether the call was successful.. success if successful, error if not.

Common errors