↑↓ to navigate ↵ to open Esc to close Search by Algolia

You are reading the documentation of FileRun 2026.4.0, which is not released yet. It is subject to change, so do not use it for planning. Read this page for FileRun 2026.3.0

API: Deleting files or folders

Target URL /api.php/Drive/files/delete
Required scope delete
HTTP Method GET/POST
Output format JSON

Request Parameters Reference

Parameter Type Description
path string The FileRun path of the target file. See this page
permanent boolean (1/0) Either the file should be permanently removed, instead of just moved to the trash folder.

The response

When the item is moved to the trash, the response carries trash_path (since FileRun 2026.3.0): the path by which the item can be restored or permanently deleted later. See Managing the trash.

 1{
 2    "success": true,
 3    "msg": ["..."],
 4    "trash_path": "/ROOT/TRASH/1234"
 5}