Auto Delete Task

The "Auto Delete Task" plugin will automatically delete assets that have reached a certain age. This is useful in a "transfer folder" scenario, where assets are only uploaded in order to be transferred to some 3rd party via PIN-Code or similar, whereafter the assets are no longer needed.

Properties

To be configured in {home}/appserver/conf/custom.properties

autoDeleteTask.enabled

type: boolean, required: yes, default: true

If the plugin is enabled or not.

autoDeleteTask.nodesMaxAgeHours

type: List of String (comma-separated), required: yes, default: -

Defines a mapping from nodes to their max age in hours, after which its content should be deleted.

For example 1400:24,1800:168 will delete objects older than 24h in node 1400, and objects older than 7 days in node 1800.

autoDeleteTask.notIfLinkedToOtherNodes

type: boolean, required: no, default: true

If the asset is also linked to other nodes, just unlink it from the current node instead of deleting it.

autoDeleteTask.cleanUpEmptyFolders

type: boolean, required: no, default: true

When empty folders are left behind through deletion of the contained assets, remove the (now empty) folder as well.

Release Notes

1.0

Initial Version

1.1

Added the unlink feature

1.2

Made the extension trashbin-aware (i.e. if you have a trashbin, deleting an asset would only move it to the trashbin - now it gets deleted from there as well)