Batch Delete Link

Disable All Public Links inside a given Folder.

This Flow is the alter-ego of the "Batch Create Links" Flow. It disable all public links from files inside a given folder.

Note about links: a link owner must always be provided to create a public link, thus the first action that loads a user by its login at the beginning of the flow.

Parameters

Name Type Default Mandatory Description
FolderPath text true Folder where to remove all links.
OwnerLogin text admin true

Trigger Type

Manual

JSON Representation

{
  "Label": "Batch Delete Link",
  "Owner": "pydio.system.user",
  "Metadata": {
    "Description": "Disable All Public Links inside a given Folder",
    "Icon": "mdi mdi-share-variant",
    "TplCategory": "idm",
    "Usage": "This Flow is the alter-ego of the \"Batch Create Links\" Flow. It disable all public links from files inside a given folder.\n\n__Note about links__: a link owner must always be provided to create a public link, thus the first action that loads a user by its login at the beginning of the flow."
  },
  "CreatedAt": 1680601112,
  "ModifiedAt": 1680624700,
  "Custom": true,
  "Actions": [
    {
      "ID": "actions.scheduler.log-input",
      "Label": "Feed User",
      "IdmSelector": {
        "Query": {
          "SubQueries": [
            {
              "type_url": "type.googleapis.com/idm.UserSingleQuery",
              "value": "Ch17ey5Kb2JQYXJhbWV0ZXJzLk93bmVyTG9naW59fQ=="
            }
          ],
          "Operation": 1
        },
        "Collect": true
      },
      "Parameters": {
        "fieldname": "{\"@value\":\"Paths\"}",
        "message": "",
        "taskLogger": "false"
      },
      "ChainedActions": [
        {
          "ID": "actions.idm.link.delete",
          "NodesSelector": {
            "Query": {
              "SubQueries": [
                {
                  "type_url": "type.googleapis.com/tree.Query",
                  "value": "Ch17ey5Kb2JQYXJhbWV0ZXJzLkZvbGRlclBhdGh9fQ=="
                }
              ],
              "Operation": 1
            }
          },
          "Parameters": {
            "onNotExists": "ignore"
          }
        }
      ],
      "MergeAction": {
        "ID": "actions.scheduler.log-input",
        "Label": "Collect Output Nodes",
        "Parameters": {
          "fieldname": "{\"@value\":\"Extension\"}",
          "message": "Finished!",
          "taskLogger": "true"
        }
      }
    }
  ],
  "MaxConcurrency": 4,
  "Parameters": [
    {
      "Name": "FolderPath",
      "Description": "Folder where to remove all links.",
      "Mandatory": true,
      "Type": "text"
    },
    {
      "Name": "OwnerLogin",
      "Value": "admin",
      "Mandatory": true,
      "Type": "text"
    }
  ]
}
Back to top