Skip to content
NewDatafor 10.02 is out: subscriptions and metric alerts, in Slack and Teams
Datafor

Files

List the Trash

List the items in the caller's Trash.

Lists deleted items in the caller’s Trash, with where each one was deleted from.

Method and path GET /plugin/datafor-modeler/api/repo/files/deleted
Permission Any signed-in user
Content type none (query string)

Parameters

Name In Type Required Description
all query boolean No Default false: only items the caller deleted, with originalPathTitle filled in. true: every deleted item the repository returns for the caller.

Example

curl -u admin:password \
  "http://localhost:28080/datafor/plugin/datafor-modeler/api/repo/files/deleted"
[
  {
    "name": "Revenue.datafor",
    "id": "66666666-7777-8888-9999-000000000000",
    "title": "Revenue",
    "folder": false,
    "originalParentFolderPath": "/public/Sales",
    "originalPathTitle": "/Public/Sales/Revenue",
    "deletedDate": "1760083200000"
  }
]

Use id with Restore items from the Trash or Permanently delete items.

Errors

Response When
{"success": false, "msg": "..."} The Trash could not be read.

Related: Delete folders or files, Quick tour of the console